| 1 | <?php |
||
| 21 | class RelationCollection implements \IteratorAggregate, \Countable |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var array|RelationInterface[] |
||
| 25 | */ |
||
| 26 | private $relations; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Constructor. |
||
| 30 | * |
||
| 31 | * @param RelationInterface ...$relations |
||
| 32 | */ |
||
| 33 | 12 | public function __construct(RelationInterface ...$relations) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | * |
||
| 41 | * @return \ArrayIterator|RelationInterface[] |
||
| 42 | */ |
||
| 43 | 3 | public function getIterator(): \ArrayIterator |
|
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | 7 | public function count(): int |
|
| 55 | } |
||
| 56 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.