/** * @return FeatureDirectory */ public function getFeatures() { if (null === $this->path || !is_dir($this->path)) { throw new \RuntimeException(sprintf('Path "%s" does not exist.', $this->path)); } $path = $this->path . '/' . $this->getFeaturesPath(); if (!is_dir($path)) { throw new \RuntimeException(sprintf('Folder "%s" does not exist.', $path)); } $finder = new FeatureFinder(); return $finder->findFeatures($path); }