protected getContent ( string $path ) : org\bovigo\vfs\vfsStreamContent | ||
$path | string | |
return | org\bovigo\vfs\vfsStreamContent |
protected function getContent($path)
{
if (null === self::$root) {
return null;
}
if (self::$root->getName() === $path) {
return self::$root;
}
if ($this->isInRoot($path) && self::$root->hasChild($path) === true) {
return self::$root->getChild($path);
}
return null;
}