Completed
Push — master ( 91a776...8c22b7 )
by Sebastian
07:46 queued 02:57
created

BusTrip::provider()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Spatie\SchemaOrg;
4
5
/**
6
 * A trip on a commercial bus line.
7
 *
8
 * @see http://schema.org/BusTrip
9
 */
10
class BusTrip extends Trip
11
{
12
    /**
13
     * The stop or station from which the bus arrives.
14
     *
15
     * @param BusStation|BusStation[]|BusStop|BusStop[] $arrivalBusStop
16
     *
17
     * @return static
18
     *
19
     * @see http://schema.org/arrivalBusStop
20
     */
21
    public function arrivalBusStop($arrivalBusStop)
22
    {
23
        return $this->setProperty('arrivalBusStop', $arrivalBusStop);
24
    }
25
26
    /**
27
     * The name of the bus (e.g. Bolt Express).
28
     *
29
     * @param string|string[] $busName
30
     *
31
     * @return static
32
     *
33
     * @see http://schema.org/busName
34
     */
35
    public function busName($busName)
36
    {
37
        return $this->setProperty('busName', $busName);
38
    }
39
40
    /**
41
     * The unique identifier for the bus.
42
     *
43
     * @param string|string[] $busNumber
44
     *
45
     * @return static
46
     *
47
     * @see http://schema.org/busNumber
48
     */
49
    public function busNumber($busNumber)
50
    {
51
        return $this->setProperty('busNumber', $busNumber);
52
    }
53
54
    /**
55
     * The stop or station from which the bus departs.
56
     *
57
     * @param BusStation|BusStation[]|BusStop|BusStop[] $departureBusStop
58
     *
59
     * @return static
60
     *
61
     * @see http://schema.org/departureBusStop
62
     */
63
    public function departureBusStop($departureBusStop)
64
    {
65
        return $this->setProperty('departureBusStop', $departureBusStop);
66
    }
67
68
}
69