| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class JSONParser implements StreamParserInterface |
||
| 17 | { |
||
| 18 | protected $reader, $source; |
||
| 19 | |||
| 20 | 4 | public function from(String $source): StreamParserInterface |
|
| 21 | { |
||
| 22 | 4 | $this->source = $source; |
|
| 23 | |||
| 24 | 4 | return $this; |
|
| 25 | } |
||
| 26 | |||
| 27 | 4 | public function each(callable $function) |
|
| 32 | 4 | }); |
|
| 33 | 4 | } |
|
| 34 | |||
| 35 | 4 | private function start() |
|
| 42 |