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