Total Complexity | 4 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | trait RelatedEndpoints |
||
14 | { |
||
15 | /** |
||
16 | * @var Endpoint |
||
17 | */ |
||
18 | private $localEP = null; |
||
19 | |||
20 | /** |
||
21 | * @var Endpoint |
||
22 | */ |
||
23 | private $remoteEP = null; |
||
24 | |||
25 | /** |
||
26 | * @param Endpoint $endpoint |
||
27 | */ |
||
28 | public function setLocalEndpoint(Endpoint $endpoint) : void |
||
29 | { |
||
30 | $this->localEP = $endpoint; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return Endpoint |
||
35 | */ |
||
36 | public function getLocalEndpoint() : ?Endpoint |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param Endpoint $endpoint |
||
43 | */ |
||
44 | public function setRemoteEndpoint(Endpoint $endpoint) : void |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @return Endpoint |
||
51 | */ |
||
52 | public function getRemoteEndpoint() : ?Endpoint |
||
55 | } |
||
56 | } |
||
57 |