From 00d2bd6ebb374b088fe2592ae279b0e2f22a3c82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20D=C3=B6bertin?= Date: Wed, 4 Apr 2018 21:05:14 +0200 Subject: [PATCH] finish init request --- src/Client.php | 10 ++++++++++ src/Objects/StationListEntry.php | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) 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; }