| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class IterableSource extends AbstractHandler |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Determine whether the handler should handle the source |
||
| 16 | * |
||
| 17 | * @return bool |
||
| 18 | */ |
||
| 19 | protected function shouldHandleSource(): bool |
||
| 20 | { |
||
| 21 | return is_iterable($this->source); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Handle the source |
||
| 26 | * |
||
| 27 | * @return Traversable|null |
||
| 28 | */ |
||
| 29 | protected function handleSource(): ?Traversable |
||
| 32 | } |
||
| 33 | } |
||
| 34 |