Skip to content

Commit bf26981

Browse files
committed
Add getters for realtime data to TimeTableEntry
1 parent bc6a938 commit bf26981

3 files changed

Lines changed: 23 additions & 64 deletions

File tree

src/Trafiklab/Common/Model/Contract/TimeTableEntry.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ public function getStopId(): string;
7676
*/
7777
public function getStopName(): string;
7878

79+
80+
/**
81+
* The track or platform where the vehicle will halt.
82+
*
83+
* @return String
84+
*/
85+
public function getPlatform(): ?string;
86+
7987
/**
8088
* The type of timetable in which this entry resides, either arrivals or departures.
8189
*
@@ -96,4 +104,19 @@ public function getTripNumber(): ?string;
96104
* @return string TransportType indicating the type of transport.
97105
*/
98106
public function getTransportType(): string;
107+
108+
109+
/**
110+
* The estimated time at which the vehicle will arrive at the stop location.
111+
*
112+
* @return DateTime
113+
*/
114+
public function getEstimatedStopTime(): ?DateTime;
115+
116+
/**
117+
* Whether or not this vehicle's stop is cancelled.
118+
*
119+
* @return bool
120+
*/
121+
public function isCancelled(): bool;
99122
}

src/Trafiklab/Common/Model/Contract/TimeTableEntryWithRealTime.php

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/Trafiklab/Common/Model/Contract/TimeTableResponseWithRealTime.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)