Ferreteria/v0.6/clade/Sys/FileSys/Node/inout/Fil/@code/cur/2025/10/06

From WoozleCodes
Jump to navigation Jump to search
2025/10/05 2025/10/06 2025/10/07

This is from when Fi and Fo were both subclades of an abstract Node clade.

interface iFi extends BaseIface {}
class cFi extends BaseClass implements iFi {
    // ++ CONFIG ++ //

    protected function IdentClass() : string { return IdentClass::class; }
    protected function InOutClass() : string { return InOutClass::class; }

    // -- CONFIG -- //
    // ++ SETUP ++ //

    // OVERRIDE: Assume $fs is (or will be) a file, and this has been invoked via the class we want.
    static public function FromSpec(string $fs) : BaseIface {
        $oThis = new static;
        $oThis->Ident()->QSFullSpec()->SetIt($fs);
        return $oThis;
    }

    // -- SETUP -- //
    // ++ INFO ++ //

    public function Size() : int|false { return filesize($this->Ident()->SpecFull()); }

    // -- INFO -- //
}