| Total Complexity | 5 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Link |
||
| 6 | { |
||
| 7 | private Coordinate $source; |
||
| 8 | private Coordinate $destination; |
||
| 9 | private float $distance; |
||
| 10 | |||
| 11 | 22 | public function __construct(Coordinate $source, Coordinate $destination, float $distance) |
|
| 20 | 20 | } |
|
| 21 | |||
| 22 | 20 | public function getSource(): Coordinate |
|
| 23 | { |
||
| 24 | 20 | return $this->source; |
|
| 25 | } |
||
| 26 | |||
| 27 | 20 | public function getDestination(): Coordinate |
|
| 30 | } |
||
| 31 | |||
| 32 | 13 | public function getDistance(): float |
|
| 35 | } |
||
| 36 | } |
||
| 37 |