| 1 | <?php |
||
| 10 | class LengthParser implements ParserInterface |
||
| 11 | { |
||
| 12 | /** @var ParserInterface $parser internal parser for length */ |
||
| 13 | private $parser; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * constructor |
||
| 17 | */ |
||
| 18 | 13 | public function __construct() |
|
| 22 | |||
| 23 | /** |
||
| 24 | * parse given `$source` as length, non-negative integer |
||
| 25 | * |
||
| 26 | * @param Source $source parser input |
||
| 27 | * @return array |
||
| 28 | * @throws UnserializeFailedException |
||
| 29 | */ |
||
| 30 | 13 | public function parse(Source $source) |
|
| 38 | } |
||
| 39 |