Phrozn\Runner\CommandLine\Commands::getIterator PHP Метод

getIterator() приватный Метод

Get DirecotryIterator to commands config path
private getIterator ( ) : DirectoryIterator
Результат DirectoryIterator
    private function getIterator()
    {
        if (null === $this->getPath()) {
            throw new \RuntimeException('Commands config path not set');
        }
        if (null === $this->it) {
            $this->it = new \DirectoryIterator($this->getPath());
        }
        return $this->it;
    }