| 1 | <?php |
||
| 22 | class StreamReader extends IteratorNode implements ReaderInterface, LoggerAwareInterface, IteratorNodeInterface |
||
| 23 | { |
||
| 24 | use OptionalLoggerTrait; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param resource $stream |
||
| 28 | * @param ParserInterface $parser |
||
| 29 | */ |
||
| 30 | 11 | public function __construct($stream, ParserInterface $parser) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Returns a sequential array of all items |
||
| 37 | * |
||
| 38 | * The callable function will be applied to each Iterator item |
||
| 39 | * |
||
| 40 | * @param callable|null $callable a callable function |
||
| 41 | * |
||
| 42 | * @return array |
||
| 43 | */ |
||
| 44 | 3 | public function fetchAll(callable $callable = null) |
|
| 48 | } |
||
| 49 |