| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 33.33% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class LaravelClientResponse extends Source |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Retrieve the JSON fragments |
||
| 17 | * |
||
| 18 | * @return Traversable<int, string> |
||
| 19 | */ |
||
| 20 | public function getIterator(): Traversable |
||
| 21 | { |
||
| 22 | return new Psr7Message($this->source->toPsrResponse(), $this->config); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Determine whether the JSON source can be handled |
||
| 27 | * |
||
| 28 | * @return bool |
||
| 29 | */ |
||
| 30 | 1 | public function matches(): bool |
|
| 31 | { |
||
| 32 | 1 | return $this->source instanceof Response; |
|
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Retrieve the calculated size of the JSON source |
||
| 37 | * |
||
| 38 | * @return int|null |
||
| 39 | */ |
||
| 40 | protected function calculateSize(): ?int |
||
| 43 | } |
||
| 44 | } |
||
| 45 |