Total Complexity | 9 |
Total Lines | 118 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
6 | class Receiver extends BaseXmlObject |
||
7 | { |
||
8 | /** @var string */ |
||
9 | public $town; |
||
10 | /** @var string */ |
||
11 | public $address; |
||
12 | /** @var string */ |
||
13 | public $pvzcode; |
||
14 | /** @var string */ |
||
15 | public $person; |
||
16 | /** @var string */ |
||
17 | public $phone; |
||
18 | /** @var string */ |
||
19 | public $date; |
||
20 | /** @var string */ |
||
21 | public $time_min; |
||
22 | /** @var string */ |
||
23 | public $time_max; |
||
24 | /** @var string */ |
||
25 | public $zipcode; |
||
26 | |||
27 | /** |
||
28 | * @param string $town |
||
29 | * @return Receiver |
||
30 | 2 | * @return Receiver |
|
31 | */ |
||
32 | 2 | public function setTown(string $town) |
|
33 | 2 | { |
|
34 | $this->town = $town; |
||
35 | return $this; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @param string $address |
||
40 | * @return Receiver |
||
41 | 3 | * @return Receiver |
|
42 | */ |
||
43 | 3 | public function setAddress(string $address) |
|
44 | 3 | { |
|
45 | $this->address = $address; |
||
46 | return $this; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @param string $pvzCode |
||
51 | * @return Receiver |
||
52 | 3 | * @return Receiver |
|
53 | */ |
||
54 | 3 | public function setPvzCode(string $pvzCode) |
|
55 | 3 | { |
|
56 | $this->pvzcode = $pvzCode; |
||
57 | return $this; |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @param string $person |
||
62 | * @return Receiver |
||
63 | 2 | * @return Receiver |
|
64 | */ |
||
65 | 2 | public function setPerson(string $person) |
|
69 | } |
||
70 | |||
71 | /** |
||
72 | * @param string $phone |
||
73 | * @return Receiver |
||
74 | 2 | * @return Receiver |
|
75 | */ |
||
76 | 2 | public function setPhone(string $phone) |
|
80 | } |
||
81 | |||
82 | /** |
||
83 | * @param string $date |
||
84 | * @return Receiver |
||
85 | 2 | * @return Receiver |
|
86 | */ |
||
87 | 2 | public function setDate(string $date) |
|
91 | } |
||
92 | |||
93 | /** |
||
94 | * @param string $time_min |
||
95 | * @return Receiver |
||
96 | 2 | * @return Receiver |
|
97 | */ |
||
98 | 2 | public function setTimeMin(string $time_min) |
|
99 | 2 | { |
|
100 | $this->time_min = $time_min; |
||
101 | return $this; |
||
102 | } |
||
103 | |||
104 | /** |
||
105 | * @param string $time_max |
||
106 | * @return Receiver |
||
107 | 2 | * @return Receiver |
|
108 | */ |
||
109 | 2 | public function setTimeMax(string $time_max) |
|
110 | 2 | { |
|
111 | $this->time_max = $time_max; |
||
112 | return $this; |
||
113 | } |
||
114 | |||
115 | /** |
||
116 | * @param string $zipcode |
||
117 | * @return Receiver |
||
118 | * @return Receiver |
||
119 | */ |
||
120 | public function setZipcode(string $zipcode) |
||
124 | } |
||
125 | } |
||
126 |