| 1 | <?php |
||
| 20 | class RouteSpecification |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Origin Location |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $origin; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Destination Location |
||
| 31 | * |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | protected $destination; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $origin |
||
| 38 | * @param string $destination |
||
| 39 | */ |
||
| 40 | public function __construct(string $origin, string $destination) |
||
| 41 | { |
||
| 42 | $this->origin = $origin; |
||
| 43 | $this->destination = $destination; |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function origin(): string |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function destination(): string |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @param RouteSpecification $other |
||
| 64 | * @return bool |
||
| 65 | */ |
||
| 66 | public function sameValueAs(RouteSpecification $other): bool |
||
| 78 | } |
||
| 79 |