public function getRootDir() { if (null === $this->rootDir) { $this->rootDir = dirname(__DIR__); } return $this->rootDir; }