Completed
Pull Request — master (#54)
by Tom
07:40
created

BusTrip   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 59
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 1
dl 0
loc 59
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A arrivalBusStop() 0 4 1
A busName() 0 4 1
A busNumber() 0 4 1
A departureBusStop() 0 4 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