private function getDirectoryIterator()
    {
        $directoryIterator = new RecursiveDirectoryIterator($this->basePath);
        $directoryIterator->setFlags(RecursiveDirectoryIterator::SKIP_DOTS);

        return new RecursiveIteratorIterator($directoryIterator);
    }
private function getDirectoryIterator()
    {
        $directoryIterator = new RecursiveDirectoryIterator($this->basePath);
        $directoryIterator->setFlags(RecursiveDirectoryIterator::SKIP_DOTS);

        return new RecursiveIteratorIterator($directoryIterator);
    }
private function getDirectoryIterator ( ) { $ directoryIterator = new RecursiveDirectoryIterator ( $ this -> basePath ) ; $ directoryIterator -> setFlags ( RecursiveDirectoryIterator :: SKIP_DOTS ) ; return new RecursiveIteratorIterator ( $ directoryIterator ) ; }
Get the directory iterator.

@return RecursiveIteratorIterator
Get the directory iterator .