| 1 | <?php |
||
| 10 | class IntegerParser implements ParserInterface |
||
| 11 | { |
||
| 12 | /** @var ParserInterface $parser internal parser for integer parsing */ |
||
| 13 | private $parser; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * constructor |
||
| 17 | */ |
||
| 18 | 17 | public function __construct() |
|
| 25 | |||
| 26 | /** |
||
| 27 | * parse given `$source` as PHP serialized integer |
||
| 28 | * |
||
| 29 | * @param Source $source parser input |
||
| 30 | * @return array |
||
| 31 | * @throws UnserializeFailedException |
||
| 32 | */ |
||
| 33 | 17 | public function parse(Source $source) |
|
| 37 | } |
||
| 38 |