| 1 | <?php |
||
| 24 | class StandardInput extends Abstraction |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Standard Input stream handle |
||
| 28 | * |
||
| 29 | * @var resource |
||
| 30 | */ |
||
| 31 | private $handle; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * StandardInput constructor. |
||
| 35 | * |
||
| 36 | * @param resource $stdInHandle |
||
| 37 | */ |
||
| 38 | public function __construct($stdInHandle) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Create the generator |
||
| 45 | * |
||
| 46 | * @return iterable |
||
| 47 | * @throws \Exception |
||
| 48 | */ |
||
| 49 | protected function createIterator(): iterable |
||
| 65 | } |
||
| 66 |