| 1 | <?php |
||
| 21 | class DirectionWaypoint |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var LocationInterface |
||
| 25 | */ |
||
| 26 | private $location; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var bool|null |
||
| 30 | */ |
||
| 31 | private $stopover; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param LocationInterface $location |
||
| 35 | * @param bool|null $stopover |
||
| 36 | */ |
||
| 37 | public function __construct(LocationInterface $location, $stopover = null) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return LocationInterface |
||
| 45 | */ |
||
| 46 | public function getLocation() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param LocationInterface $location |
||
| 53 | */ |
||
| 54 | public function setLocation(LocationInterface $location) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return bool |
||
| 61 | */ |
||
| 62 | public function hasStopover() |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @return bool|null |
||
| 69 | */ |
||
| 70 | public function getStopover() |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @param bool|null $stopover |
||
| 77 | */ |
||
| 78 | public function setStopover($stopover = null) |
||
| 82 | } |
||
| 83 |