Puli\Repository\Resource\GenericResource::getChild PHP Method

getChild() public method

public getChild ( $relPath )
    public function getChild($relPath)
    {
        if (!$this->getRepository()) {
            throw ResourceNotFoundException::forPath($this->getRepositoryPath() . '/' . $relPath);
        }
        return $this->getRepository()->get($this->getRepositoryPath() . '/' . $relPath);
    }