Total Complexity | 4 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | final class ReflectionPropertySet implements IteratorAggregate |
||
23 | { |
||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | private $elements = []; |
||
28 | |||
29 | /** |
||
30 | * Ensure the element exists in the collection |
||
31 | * |
||
32 | * Returns true if the collection can contain duplicates, |
||
33 | * and false if it cannot. |
||
34 | * |
||
35 | * @param ReflectionProperty $element |
||
36 | * @return bool |
||
37 | */ |
||
38 | 6 | public function add(ReflectionProperty $element): bool |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * Returns an array of all elements in the collection |
||
52 | * |
||
53 | * @return array |
||
54 | */ |
||
55 | 7 | public function toArray(): array |
|
58 | } |
||
59 | |||
60 | /** |
||
61 | * Retrieve an external iterator |
||
62 | * |
||
63 | * @return ArrayIterator |
||
64 | */ |
||
65 | 4 | public function getIterator(): ArrayIterator |
|
70 |