| Total Complexity | 4 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 18.18% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class Psr7Stream extends Source |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Retrieve the JSON fragments |
||
| 19 | * |
||
| 20 | * @return Traversable<int, string> |
||
| 21 | */ |
||
| 22 | public function getIterator(): Traversable |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Determine whether the JSON source can be handled |
||
| 37 | * |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | 1 | public function matches(): bool |
|
| 41 | { |
||
| 42 | 1 | return $this->source instanceof StreamInterface; |
|
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Retrieve the calculated size of the JSON source |
||
| 47 | * |
||
| 48 | * @return int|null |
||
| 49 | */ |
||
| 50 | protected function calculateSize(): ?int |
||
| 53 | } |
||
| 54 | } |
||
| 55 |