1 | <?php |
||
17 | trait SetTrait |
||
18 | { |
||
19 | abstract public function getEdgeSet(): Set; |
||
20 | |||
21 | /** |
||
22 | * Sets the contained edges. |
||
23 | * |
||
24 | * @param EdgeInterface[] $edges |
||
25 | */ |
||
26 | public function setEdges(EdgeInterface ...$edges) |
||
32 | |||
33 | /** |
||
34 | * Adds some edges. |
||
35 | * |
||
36 | * @param EdgeInterface[] $edges |
||
37 | */ |
||
38 | public function addEdges(EdgeInterface ...$edges) |
||
44 | |||
45 | /** |
||
46 | * Checks if all the edges are contained. |
||
47 | * |
||
48 | * @param EdgeInterface[] $edges |
||
49 | * |
||
50 | * @return bool |
||
51 | */ |
||
52 | public function hasEdges(EdgeInterface ...$edges): bool |
||
58 | |||
59 | /** |
||
60 | * Removes some edges. |
||
61 | * |
||
62 | * @param EdgeInterface[] $edges |
||
63 | */ |
||
64 | public function removeEdges(EdgeInterface ...$edges) |
||
70 | |||
71 | /** |
||
72 | * Remove all contained elements. |
||
73 | */ |
||
74 | public function clearEdges() |
||
80 | |||
81 | /** |
||
82 | * Checks if no elements are contained. |
||
83 | * |
||
84 | * @return bool |
||
85 | */ |
||
86 | public function isEmptyEdges(): bool |
||
92 | |||
93 | /** |
||
94 | * {@inheritdoc} |
||
95 | */ |
||
96 | public function countEdges(): int |
||
102 | } |
||
103 |