| @@ 18-24 (lines=7) @@ | ||
| 15 | * @return array parser result |
|
| 16 | * @throws UnserializeFailedException |
|
| 17 | */ |
|
| 18 | public function handle(xKerman_Restricted_Source $source, $args) |
|
| 19 | { |
|
| 20 | $length = intval($args, 10); |
|
| 21 | $result = $source->read($length); |
|
| 22 | $source->consume('";', self::CLOSE_STRING_LENGTH); |
|
| 23 | return array($result, $source); |
|
| 24 | } |
|
| 25 | } |
|
| @@ 23-30 (lines=8) @@ | ||
| 20 | * @return array parser result |
|
| 21 | * @throws UnserializeFailedException |
|
| 22 | */ |
|
| 23 | public function handle(Source $source, $args) |
|
| 24 | { |
|
| 25 | $length = intval($args, 10); |
|
| 26 | $result = $source->read($length); |
|
| 27 | $source->consume('";', self::CLOSE_STRING_LENGTH); |
|
| 28 | ||
| 29 | return array($result, $source); |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||