Completed
Push — master ( 3f0652...6ef7a8 )
by Taosikai
10:39
created

ShipmentEvent::setTime()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/**
3
 * Slince shipment tracker library
4
 * @author Tao <[email protected]>
5
 */
6
namespace Slince\ShipmentTracking\USPS;
7
8
use Slince\ShipmentTracking\Foundation\ShipmentEvent as BaseShipmentEvent;
9
10
class ShipmentEvent extends BaseShipmentEvent
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $time;
16
17
    /**
18
     * @var string
19
     */
20
    protected $day;
21
22
    /**
23
     * @var string
24
     */
25
    protected $city;
26
27
    /**
28
     * @var string
29
     */
30
    protected $state;
31
32
    /**
33
     * @var string
34
     */
35
    protected $zipCode;
36
37
    /**
38
     * @var string
39
     */
40
    protected $country;
41
42
    /**
43
     * @return string
44
     */
45
    public function getCity()
46
    {
47
        return $this->city;
48
    }
49
50
    /**
51
     * @param string $city
52
     * @return ShipmentEvent
53
     */
54
    public function setCity($city)
55
    {
56
        $this->city = $city;
57
        return $this;
58
    }
59
60
    /**
61
     * @return string
62
     */
63
    public function getCountry()
64
    {
65
        return $this->country;
66
    }
67
68
    /**
69
     * @param string $country
70
     * @return ShipmentEvent
71
     */
72
    public function setCountry($country)
73
    {
74
        $this->country = $country;
75
        return $this;
76
    }
77
78
    /**
79
     * @return string
80
     */
81
    public function getDay()
82
    {
83
        return $this->day;
84
    }
85
86
    /**
87
     * @param string $day
88
     * @return ShipmentEvent
89
     */
90
    public function setDay($day)
91
    {
92
        $this->day = $day;
93
        return $this;
94
    }
95
96
    /**
97
     * @return string
98
     */
99
    public function getState()
100
    {
101
        return $this->state;
102
    }
103
104
    /**
105
     * @param string $state
106
     * @return ShipmentEvent
107
     */
108
    public function setState($state)
109
    {
110
        $this->state = $state;
111
        return $this;
112
    }
113
114
    /**
115
     * @return string
116
     */
117
    public function getTime()
118
    {
119
        return $this->time;
120
    }
121
122
    /**
123
     * @param string $time
124
     * @return ShipmentEvent
125
     */
126
    public function setTime($time)
127
    {
128
        $this->time = $time;
129
        return $this;
130
    }
131
132
    /**
133
     * @return string
134
     */
135
    public function getZipCode()
136
    {
137
        return $this->zipCode;
138
    }
139
140
    /**
141
     * @param string $zipCode
142
     * @return ShipmentEvent
143
     */
144
    public function setZipCode($zipCode)
145
    {
146
        $this->zipCode = $zipCode;
147
        return $this;
148
    }
149
}