Phrozn\Runner\CommandLine\Commands::getIterator PHP 메소드

getIterator() 개인적인 메소드

Get DirecotryIterator to commands config path
    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;
    }