paths = $paths; return $this; } /** * Get the array of paths where to files to be scanned by Swagger are searched * * @return array */ public function getPaths() { return $this->paths; } /** * Get a list of files to be scanned by Swagger * * @return array */ public function getFileList() { $fileList = array(); foreach ($this->paths as $path) { $directoryIterator = new DirectoryIterator($path); /** @var $file DirectoryIterator */ foreach ($directoryIterator as $file) { if (!$file->isDir()) { $fileList[] = $file->getPathname(); } } } return $fileList; } /** * * @return array */ public function getResourceOptions() { return $this->resourceOptions; } /** * * @param array $resourceOptions */ public function setResourceOptions($resourceOptions) { $this->resourceOptions = $resourceOptions; } }