| Total Complexity | 6 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class LoophpCollectionFactory implements CollectionFactoryInterface |
||
| 16 | { |
||
| 17 | /** @var class-string<TCollection> */ |
||
|
|
|||
| 18 | private string $class = Collection::class; |
||
| 19 | |||
| 20 | public function __construct() |
||
| 27 | ) |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getInterface(): ?string |
||
| 35 | } |
||
| 36 | |||
| 37 | public function withCollectionClass(string $class): static |
||
| 38 | { |
||
| 39 | $clone = clone $this; |
||
| 40 | $clone->class = $class; |
||
| 41 | return $clone; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function collect(iterable $data): CollectionInterface |
||
| 49 | } |
||
| 50 | } |
||
| 51 |