diff --git a/src/Client.php b/src/Client.php index a7afeb6..5acd24b 100644 --- a/src/Client.php +++ b/src/Client.php @@ -85,6 +85,16 @@ public function __construct( $this->platform = Platform::get($platform); } + /** + * Create an init request. + * + * @return \JdPowered\Geofox\Request\Init + */ + public function init() + { + return new InitRequest($this); + } + /** * Create a listStations request. * diff --git a/src/Objects/StationListEntry.php b/src/Objects/StationListEntry.php index 7bb1831..c5bcf2b 100644 --- a/src/Objects/StationListEntry.php +++ b/src/Objects/StationListEntry.php @@ -130,7 +130,7 @@ public function getVehicleTypes(): Set */ public function setExists(?bool $exists = true): self { - $this->exists = $exists; + $this->exists = $exists ?? true; return $this; }