ShipmentEvent   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 128
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getCity() 0 4 1
A setCity() 0 5 1
A getCountry() 0 4 1
A setCountry() 0 5 1
A getDay() 0 4 1
A setDay() 0 5 1
A getState() 0 4 1
A setState() 0 5 1
A getZipCode() 0 4 1
A setZipCode() 0 5 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
     * @deprecated
14
     * @var string
15
     */
16
    protected $day;
17
18
    /**
19
     * @deprecated
20
     * @var string
21
     */
22
    protected $city;
23
24
    /**
25
     * @deprecated
26
     * @var string
27
     */
28
    protected $state;
29
30
    /**
31
     * @var string
32
     */
33
    protected $zipCode;
34
35
    /**
36
     * @deprecated
37
     * @var string
38
     */
39
    protected $country;
40
41
    /**
42
     * @return string
43
     * @deprecated
44
     */
45
    public function getCity()
46
    {
47
        return $this->city;
0 ignored issues
show
Deprecated Code introduced by
The property Slince\ShipmentTracking\USPS\ShipmentEvent::$city has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
48
    }
49
50
    /**
51
     * @param string $city
52
     * @return ShipmentEvent
53
     * @deprecated
54
     */
55
    public function setCity($city)
56
    {
57
        $this->city = $city;
0 ignored issues
show
Deprecated Code introduced by
The property Slince\ShipmentTracking\USPS\ShipmentEvent::$city has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
58
        return $this;
59
    }
60
61
    /**
62
     * @return string
63
     * @deprecated
64
     */
65
    public function getCountry()
66
    {
67
        return $this->country;
0 ignored issues
show
Deprecated Code introduced by
The property Slince\ShipmentTracking\...ShipmentEvent::$country has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
68
    }
69
70
    /**
71
     * @param string $country
72
     * @return ShipmentEvent
73
     * @deprecated
74
     */
75
    public function setCountry($country)
76
    {
77
        $this->country = $country;
0 ignored issues
show
Deprecated Code introduced by
The property Slince\ShipmentTracking\...ShipmentEvent::$country has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
78
        return $this;
79
    }
80
81
    /**
82
     * @return string
83
     * @deprecated
84
     */
85
    public function getDay()
86
    {
87
        return $this->day;
0 ignored issues
show
Deprecated Code introduced by
The property Slince\ShipmentTracking\USPS\ShipmentEvent::$day has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
88
    }
89
90
    /**
91
     * @param string $day
92
     * @return ShipmentEvent
93
     * @deprecated
94
     */
95
    public function setDay($day)
96
    {
97
        $this->day = $day;
0 ignored issues
show
Deprecated Code introduced by
The property Slince\ShipmentTracking\USPS\ShipmentEvent::$day has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
98
        return $this;
99
    }
100
101
    /**
102
     * @return string
103
     */
104
    public function getState()
105
    {
106
        return $this->state;
0 ignored issues
show
Deprecated Code introduced by
The property Slince\ShipmentTracking\USPS\ShipmentEvent::$state has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
107
    }
108
109
    /**
110
     * @param string $state
111
     * @return ShipmentEvent
112
     * @deprecated
113
     */
114
    public function setState($state)
115
    {
116
        $this->state = $state;
0 ignored issues
show
Deprecated Code introduced by
The property Slince\ShipmentTracking\USPS\ShipmentEvent::$state has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
117
        return $this;
118
    }
119
120
    /**
121
     * @return string
122
     */
123
    public function getZipCode()
124
    {
125
        return $this->zipCode;
126
    }
127
128
    /**
129
     * @param string $zipCode
130
     * @return ShipmentEvent
131
     */
132
    public function setZipCode($zipCode)
133
    {
134
        $this->zipCode = $zipCode;
135
        return $this;
136
    }
137
}