| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Mbh\Collection; |
||
| 28 | class FixedArray implements AllocatedInterface, FunctionalInterface, SequenceableInterface |
||
| 29 | { |
||
| 30 | use Capacity; |
||
| 31 | use EmptyGuard; |
||
| 32 | use Traits\Collection; |
||
| 33 | use Traits\Functional; |
||
| 34 | use Traits\Sequenceable; |
||
| 35 | use Traits\Sequenceable\Arrayed; |
||
| 36 | |||
| 37 | const MIN_CAPACITY = 8.0; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @inheritDoc |
||
| 41 | */ |
||
| 42 | protected function getGrowthFactor(): float |
||
| 43 | { |
||
| 44 | return 1.5; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @inheritDoc |
||
| 49 | */ |
||
| 50 | protected function shouldIncreaseCapacity(): bool |
||
| 53 | } |
||
| 54 | } |
||
| 55 |