Skip to content

Commit 1a7fd34

Browse files
committed
Small fixes and documentation
1 parent 2ef18b0 commit 1a7fd34

2 files changed

Lines changed: 34 additions & 2 deletions

File tree

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55

66
use 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

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55

66
use 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
}

0 commit comments

Comments
 (0)