Ferreteria/v0.6/clade/IO/O/Data/Element/Branch/@code/rmv/2026/06/07

From WoozleCodes
Jump to navigation Jump to search
Code Removed on 2026-06-07
2026/06/06 2026/06/07 2026/06/08

2026-01-29 This is now inconsistent with current design.

#
    public function __construct(ElemIface $o, string $s) {
        parent::__construct($o);
        $this->WithString($s);
    }

    // ++ SETUP: dynamic ++ //

    private $s;
    protected function WithString(string $s) { $this->s = $s; }
    protected function Value() : string { return $this->s; }

(Probably early June) changing get/set function to a simple property:

#
    private $s = NULL;
    public function SText(string $s=NULL) : string { return is_null($s) ? $this->s : ($this->s = $s); }
   // ++ OUTPUT ++ //

2026-01-29 Commented out -- is this still the right place to implement this?

public function RenderSelf() : string { return $this->SText().CRLF;}

2026-01-29 Is this still needed/used?

#
    // CEMENT BaseIface
    public function ShowIt() { echo $this->SText(); }