1 | <?php |
||
12 | final class Vector implements \IteratorAggregate, \ArrayAccess, Sequence |
||
13 | { |
||
14 | use Traits\GenericCollection; |
||
15 | use Traits\GenericSequence; |
||
16 | use Traits\Capacity; |
||
17 | |||
18 | const MIN_CAPACITY = 8; |
||
19 | |||
20 | protected function getGrowthFactor(): float |
||
24 | |||
25 | 86 | /** |
|
26 | * @return whether capacity should be increased. |
||
|
|||
27 | 86 | */ |
|
28 | 56 | protected function shouldIncreaseCapacity(): bool |
|
32 | } |
||
33 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.