PHP Class Puli\Repository\Resource\LinkResource

Since: 1.0
Author: Bernhard Schussek ([email protected])
Author: Titouan Galopin ([email protected])
Inheritance: extends GenericResource, implements Puli\Repository\Api\Resource\PuliResource
Show file Open project: puli/repository

Public Methods

Method Description
__construct ( string $targetPath, string | null $path = null )
getChild ( $relPath )
getTarget ( )
getTargetPath ( ) : string
hasChild ( $relPath )
hasChildren ( )
listChildren ( )

Protected Methods

Method Description
postUnserialize ( array $data )
preSerialize ( array &$data )

Method Details

__construct() public method

public __construct ( string $targetPath, string | null $path = null )
$targetPath string
$path string | null

getChild() public method

public getChild ( $relPath )

getTarget() public method

public getTarget ( )

getTargetPath() public method

public getTargetPath ( ) : string
return string

hasChild() public method

public hasChild ( $relPath )

hasChildren() public method

public hasChildren ( )

listChildren() public method

public listChildren ( )

postUnserialize() protected method

protected postUnserialize ( array $data )
$data array

preSerialize() protected method

protected preSerialize ( array &$data )
$data array