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; }