|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Spatie\SchemaOrg; |
|
4
|
|
|
|
|
5
|
|
|
/** |
|
6
|
|
|
* A trip on a commercial train line. |
|
7
|
|
|
* |
|
8
|
|
|
* @see http://schema.org/TrainTrip |
|
9
|
|
|
*/ |
|
10
|
|
|
class TrainTrip extends Trip |
|
11
|
|
|
{ |
|
12
|
|
|
/** |
|
13
|
|
|
* The platform where the train arrives. |
|
14
|
|
|
* |
|
15
|
|
|
* @param string|string[] $arrivalPlatform |
|
16
|
|
|
* |
|
17
|
|
|
* @return static |
|
18
|
|
|
* |
|
19
|
|
|
* @see http://schema.org/arrivalPlatform |
|
20
|
|
|
*/ |
|
21
|
|
|
public function arrivalPlatform($arrivalPlatform) |
|
22
|
|
|
{ |
|
23
|
|
|
return $this->setProperty('arrivalPlatform', $arrivalPlatform); |
|
24
|
|
|
} |
|
25
|
|
|
|
|
26
|
|
|
/** |
|
27
|
|
|
* The station where the train trip ends. |
|
28
|
|
|
* |
|
29
|
|
|
* @param TrainStation|TrainStation[] $arrivalStation |
|
30
|
|
|
* |
|
31
|
|
|
* @return static |
|
32
|
|
|
* |
|
33
|
|
|
* @see http://schema.org/arrivalStation |
|
34
|
|
|
*/ |
|
35
|
|
|
public function arrivalStation($arrivalStation) |
|
36
|
|
|
{ |
|
37
|
|
|
return $this->setProperty('arrivalStation', $arrivalStation); |
|
38
|
|
|
} |
|
39
|
|
|
|
|
40
|
|
|
/** |
|
41
|
|
|
* The platform from which the train departs. |
|
42
|
|
|
* |
|
43
|
|
|
* @param string|string[] $departurePlatform |
|
44
|
|
|
* |
|
45
|
|
|
* @return static |
|
46
|
|
|
* |
|
47
|
|
|
* @see http://schema.org/departurePlatform |
|
48
|
|
|
*/ |
|
49
|
|
|
public function departurePlatform($departurePlatform) |
|
50
|
|
|
{ |
|
51
|
|
|
return $this->setProperty('departurePlatform', $departurePlatform); |
|
52
|
|
|
} |
|
53
|
|
|
|
|
54
|
|
|
/** |
|
55
|
|
|
* The station from which the train departs. |
|
56
|
|
|
* |
|
57
|
|
|
* @param TrainStation|TrainStation[] $departureStation |
|
58
|
|
|
* |
|
59
|
|
|
* @return static |
|
60
|
|
|
* |
|
61
|
|
|
* @see http://schema.org/departureStation |
|
62
|
|
|
*/ |
|
63
|
|
|
public function departureStation($departureStation) |
|
64
|
|
|
{ |
|
65
|
|
|
return $this->setProperty('departureStation', $departureStation); |
|
66
|
|
|
} |
|
67
|
|
|
|
|
68
|
|
|
/** |
|
69
|
|
|
* The name of the train (e.g. The Orient Express). |
|
70
|
|
|
* |
|
71
|
|
|
* @param string|string[] $trainName |
|
72
|
|
|
* |
|
73
|
|
|
* @return static |
|
74
|
|
|
* |
|
75
|
|
|
* @see http://schema.org/trainName |
|
76
|
|
|
*/ |
|
77
|
|
|
public function trainName($trainName) |
|
78
|
|
|
{ |
|
79
|
|
|
return $this->setProperty('trainName', $trainName); |
|
80
|
|
|
} |
|
81
|
|
|
|
|
82
|
|
|
/** |
|
83
|
|
|
* The unique identifier for the train. |
|
84
|
|
|
* |
|
85
|
|
|
* @param string|string[] $trainNumber |
|
86
|
|
|
* |
|
87
|
|
|
* @return static |
|
88
|
|
|
* |
|
89
|
|
|
* @see http://schema.org/trainNumber |
|
90
|
|
|
*/ |
|
91
|
|
|
public function trainNumber($trainNumber) |
|
92
|
|
|
{ |
|
93
|
|
|
return $this->setProperty('trainNumber', $trainNumber); |
|
94
|
|
|
} |
|
95
|
|
|
|
|
96
|
|
|
} |
|
97
|
|
|
|