File tree Expand file tree Collapse file tree
src/Trafiklab/Common/Model/Contract Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55
66use DateTime ;
7+ use Trafiklab \Common \Model \Enum \RoutePlanningSearchType ;
78
89/**
910 * A request for a route-planning. Implementing classes may provide more detailed functionality.
@@ -25,9 +26,23 @@ public function getDestinationStopId(): string;
2526
2627 public function setDestinationStopId (string $ stopId ): void ;
2728
29+ /**
30+ * Get the type of time definition in this query. Either Arriving at a certain time, or departing at a certain time.
31+ *
32+ * @return int One of the constants defined in RoutePlanningSearchType
33+ *
34+ * @see RoutePlanningSearchType
35+ */
2836 public function getRoutePlanningSearchType (): int ;
2937
30- public function setRoutePlanningSearchType (int $ timeTableType ): void ;
38+ /**
39+ * Set the type of time definition in this query. Either Arriving at a certain time, or departing at a certain time.
40+ *
41+ * @param int $routePlanningSearchType One of the constants defined in RoutePlanningSearchType
42+ *
43+ * @see RoutePlanningSearchType
44+ */
45+ public function setRoutePlanningSearchType (int $ routePlanningSearchType ): void ;
3146
3247 public function getDateTime (): DateTime ;
3348
Original file line number Diff line number Diff line change 44
55
66use DateTime ;
7+ use Trafiklab \Common \Model \Enum \TimeTableType ;
78
89/**
910 * A request for a timetable. Implementing classes may provide more detailed functionality.
@@ -18,11 +19,27 @@ public function getStopId(): string;
1819
1920 public function setStopId (string $ stopId ): void ;
2021
22+ /**
23+ * Get the type of the TimeTable, either the constant defined in TimeTableType for departures or for arrivals.
24+ *
25+ * @see TimeTableType
26+ *
27+ * @return int $timeTableType the type of the TimeTable, either the constant defined in TimeTableType
28+ * for departures or for arrivals.
29+ */
2130 public function getTimeTableType (): int ;
2231
32+ /**
33+ * Set the type of the TimeTable, either the constant defined in TimeTableType for departures or for arrivals.
34+ *
35+ * @see TimeTableType
36+ *
37+ * @param int $timeTableType the type of the TimeTable, either the constant defined in TimeTableType
38+ * for departures or for arrivals.
39+ */
2340 public function setTimeTableType (int $ timeTableType ): void ;
2441
25- public function getDateTime (): ? DateTime ;
42+ public function getDateTime (): DateTime ;
2643
2744 public function setDateTime (?DateTime $ timeTableType ): void ;
2845}
You can’t perform that action at this time.
0 commit comments