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