| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class VertexSet extends ArrayObject |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Construct a set of vertices |
||
| 16 | * |
||
| 17 | * @param array $input - array of vertices |
||
| 18 | */ |
||
| 19 | 39 | public function __construct(array $input = []) |
|
| 22 | 39 | } |
|
| 23 | |||
| 24 | /** |
||
| 25 | * Check if the set contains the vertex |
||
| 26 | * |
||
| 27 | * @param VertexInterface $vertex - niddle |
||
| 28 | */ |
||
| 29 | 37 | public function contains(VertexInterface $vertex): bool |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Remove the vertex from the set |
||
| 36 | * |
||
| 37 | * @param VertexInterface $vertex - niddle |
||
| 38 | */ |
||
| 39 | 1 | public function remove(VertexInterface $vertex): void |
|
| 46 |