| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 29 | 22 | public function __construct(string $collectionName = self::COLLECTION_NAME) |
|
| 30 | { |
||
| 31 | // Set pointer for internal iterable and countable collection to passed property by its name |
||
| 32 | 22 | $this->internalCollection = &$this->$collectionName; |
|
| 33 | |||
| 34 | // Set empty array |
||
| 35 | 22 | $this->internalCollection = []; |
|
| 36 | 22 | } |
|
| 37 | |||
| 91 |