| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class JsonString implements Handler |
||
| 15 | { |
||
| 16 | use EndpointAware; |
||
| 17 | use JsonPointerAware; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Determine whether the handler can handle the given source |
||
| 21 | * |
||
| 22 | * @param mixed $source |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | 7 | public function handles($source): bool |
|
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Handle the given source |
||
| 32 | * |
||
| 33 | * @param mixed $source |
||
| 34 | * @param string $path |
||
| 35 | * @return Traversable |
||
| 36 | */ |
||
| 37 | 2 | public function handle($source, string $path): Traversable |
|
| 42 |