Skip to content

Commit

Permalink
finish init request
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasDoebertin committed Apr 4, 2018
1 parent fd5c3e7 commit 00d2bd6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
2 changes: 1 addition & 1 deletion src/Objects/StationListEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function getVehicleTypes(): Set
*/
public function setExists(?bool $exists = true): self
{
$this->exists = $exists;
$this->exists = $exists ?? true;

return $this;
}
Expand Down

0 comments on commit 00d2bd6

Please sign in to comment.