Puli\Repository\Api\Resource\PuliResource::createReference PHP Метод

createReference() публичный Метод

References are identical for their referenced resource except for their path. The path of the referenced resource can be obtained by calling {@link getRepositoryPath()}: php $resource = new MyResource('/path'); $reference = $resource->createReference('/reference'); $reference->getPath(); "/reference" $reference->getRepositoryPath(); "/path" Use {@link isReference()} to find out whether a resource is a reference.
public createReference ( string $path ) : static
$path string The path of the reference.
Результат static The reference.
    public function createReference($path);