dynamicSourceLocatorProvider = $dynamicSourceLocatorProvider; $this->fileAndDirectoryFilter = $fileAndDirectoryFilter; $this->filesystemTweaker = $filesystemTweaker; } /** * @param string[] $paths */ public function addPaths(array $paths) : void { if ($paths === []) { return; } $paths = $this->filesystemTweaker->resolveWithFnmatch($paths); $files = $this->fileAndDirectoryFilter->filterFiles($paths); $this->dynamicSourceLocatorProvider->addFiles($files); $directories = $this->fileAndDirectoryFilter->filterDirectories($paths); $this->dynamicSourceLocatorProvider->addDirectories($directories); } public function isPathsEmpty() : bool { return $this->dynamicSourceLocatorProvider->isPathsEmpty(); } }