This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
abstract FilterIterator extends IteratorIterator implements OuterIterator , Traversable , Iterator { | |
/* Methods */ | |
abstract bool accept ( void ) | |
__construct ( Iterator $iterator ) | |
mixed current ( void ) | |
Iterator getInnerIterator ( void ) | |
mixed key ( void ) | |
void next ( void ) | |
void rewind ( void ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class FilterExample extends FilterIterator | |
{ | |
protected $number_type; | |
public function __construct($iterator, $number_type) | |
{ | |
parent::__construct($iterator); | |
$this->number_type = $number_type; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
DirectoryIterator extends SplFileInfo implements Iterator , Traversable , SeekableIterator { | |
/* Methods */ | |
public __construct ( string $path ) | |
public DirectoryIterator current ( void ) | |
public int getATime ( void ) | |
public string getBasename ([ string $suffix ] ) | |
public int getCTime ( void ) | |
public string getExtension ( void ) | |
public string getFilename ( void ) |