1 | <?php |
||
16 | trait LoopTrait |
||
17 | { |
||
18 | /** |
||
19 | * Checks if the edge has a starting vertex. |
||
20 | * |
||
21 | * @return bool |
||
22 | */ |
||
23 | abstract public function hasVertexStart(): bool; |
||
24 | |||
25 | /** |
||
26 | * Gets the starting vertex. |
||
27 | * |
||
28 | * @return VertexInterface |
||
29 | */ |
||
30 | abstract public function getVertexStart(): VertexInterface; |
||
31 | |||
32 | /** |
||
33 | * Checks if the edge has an ending vertex. |
||
34 | * |
||
35 | * @return bool |
||
36 | */ |
||
37 | abstract public function hasVertexEnd(): bool; |
||
38 | |||
39 | /** |
||
40 | * Gets the ending vertex. |
||
41 | * |
||
42 | * @return VertexInterface |
||
43 | */ |
||
44 | abstract public function getVertexEnd(): VertexInterface; |
||
45 | |||
46 | /** |
||
47 | * Checks if the edge is a loop. |
||
48 | * |
||
49 | * @return bool |
||
50 | */ |
||
51 | public function isLoop(): bool |
||
56 | } |
||
57 |