Jarves\Configuration\EntryPoint::getChild PHP Method

getChild() public method

public getChild ( $path ) : EntryPoint
$path
return EntryPoint
    public function getChild($path)
    {
        $first = false === ($pos = strpos($path, '/')) ? $path : substr($path, 0, $pos);
        if (null !== $this->children) {
            foreach ($this->children as $child) {
                if ($first == $child->getPath()) {
                    if (false !== strpos($path, '/')) {
                        return $child->getChild(substr($path, $pos + 1));
                    } else {
                        return $child;
                    }
                }
            }
        }
    }