1 | <?php |
||
21 | class Edge implements EdgeInterface, AttributeAwareInterface |
||
22 | { |
||
23 | use AttributeAwareTrait; |
||
24 | use Descriptor\LoopTrait; |
||
25 | |||
26 | /** |
||
27 | * Starting vertex. |
||
28 | * |
||
29 | * @var VertexInterface|null |
||
30 | */ |
||
31 | private $vertexStart; |
||
32 | |||
33 | /** |
||
34 | * Ending vertex. |
||
35 | * |
||
36 | * @var VertexInterface|null |
||
37 | */ |
||
38 | private $vertexEnd; |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function __construct( |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function hasVertexStart(): bool |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function getVertexStart(): VertexInterface |
||
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | public function setVertexStart(VertexInterface $vertexStart) |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | public function hasVertexEnd(): bool |
||
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | public function getVertexEnd(): VertexInterface |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | public function setVertexEnd(VertexInterface $vertexEnd) |
||
98 | } |
||
99 |