public function accept()
    {
        /**
         * @var     \SplFileInfo        $file
         */
        $file = $this->current();
        if ($file->getType()==$this->getType()) {
            return true;
        }
        return false;
    }
public function accept()
    {
        /**
         * @var     \SplFileInfo        $file
         */
        $file = $this->current();
        if ($file->getType()==$this->getType()) {
            return true;
        }
        return false;
    }
public function accept ( ) { /**
         * @var     \SplFileInfo        $file
         */ $ file = $ this -> current ( ) ; if ( $ file -> getType ( ) == $ this -> getType ( ) ) { return true ; } return false ; }
filter iterator element

@return      bool
filter iterator element