| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Mbh\Collection; |
||
| 41 | class FixedArray implements SequenceableInterface |
||
| 42 | { |
||
| 43 | use Traits\Collection; |
||
| 44 | use Traits\Sequenceable; |
||
| 45 | use Traits\Functional; |
||
| 46 | use Traits\Capacity; |
||
| 47 | |||
| 48 | const MIN_CAPACITY = 8; |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @inheritDoc |
||
| 52 | */ |
||
| 53 | protected function getGrowthFactor(): float |
||
| 54 | { |
||
| 55 | return 1.5; |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @inheritDoc |
||
| 60 | */ |
||
| 61 | protected function shouldIncreaseCapacity(): bool |
||
| 64 | } |
||
| 65 | } |
||
| 66 |