build/php/src/Gdbots/Schemas/Ncr/NodeRef.php
public static function fromFilePath(string $string): self
    {
        $parts = explode('/', $string, 5);
        unset($parts[2]);
        unset($parts[3]);

        return self::fromString(
            str_replace(['__FS__', '__CLN__'], ['/', ':'], implode(':', $parts))
        );
    }
public static function fromFilePath(string $string): self
    {
        $parts = explode('/', $string, 5);
        unset($parts[2]);
        unset($parts[3]);

        return self::fromString(
            str_replace(['__FS__', '__CLN__'], ['/', ':'], implode(':', $parts))
        );
    }
public static function fromFilePath ( string $ string ) : self { $ parts = explode ( '/' , $ string , 5 ) ; unset ( $ parts [ 2 ] ) ; unset ( $ parts [ 3 ] ) ; return self :: fromString ( str_replace ( [ '__FS__' , '__CLN__' ] , [ '/' , ':' ] , implode ( ':' , $ parts ) ) ) ; }
Creates a NodeRef from a file path, assuming it was generated by the "toFilePath" method.

@param string $string

@return static
Creates a NodeRef from a file path assuming it was generated by the toFilePath method .