Ferreteria/v0.6/clade/IO/O/View/@code/2026/01/26

From WoozleCodes
Jump to navigation Jump to search
2026/01/25 2026/01/26 2026/01/27

Entire contents of file, as deleted today:

<?php namespace Woozalia\Ferret\IO\O;
// DOCS:

/* Base* [c,i] */ use Woozalia\Ferret\Aux\{ cStandardBase as BaseClass, iStandardBase as BaseIface };

interface iView extends BaseIface {
    function Render() : string;
    function RenderInline() : string;
    function RenderBlock() : string;
}
trait tView {
    // ++ SETUP ++ //

    public function __construct(private BaseIface $oSubj){}
    protected function Subject() : BaseIface { return $this->oSubj; }

    // -- SETUP -- //
    // ++ OUTPUT ++ //

    protected function RenderBefore() : string  { return $this->PrefixString(); }
    protected function RenderAfter() : string { return $this->SuffixString(); }
    protected function RenderElement(iElement $o) : string { return $o->Render(); }

    public function RenderInline() : string { return self::PromptForMethod(); }
    public function RenderBlock() : string { return self::PromptForMethod(); }

    // -- OUTPUT -- //
}
abstract class caView extends BaseClass implements iView { use tView; }