Total Complexity | 1 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
10 | class StringHandler implements HandlerInterface |
||
11 | { |
||
12 | /** @var integer */ |
||
13 | const CLOSE_STRING_LENGTH = 2; |
||
14 | |||
15 | /** |
||
16 | * parse give `$source` as PHP serialized string |
||
17 | * |
||
18 | * @param Source $source parser input |
||
19 | * @param string|null $args string length |
||
20 | * @return array parser result |
||
21 | * @throws UnserializeFailedException |
||
22 | */ |
||
23 | 10 | public function handle(Source $source, $args) |
|
32 |