Receiver   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 118
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 28
dl 0
loc 118
ccs 24
cts 24
cp 1
rs 10
c 2
b 1
f 0
wmc 9

9 Methods

Rating   Name   Duplication   Size   Complexity  
A setPerson() 0 4 1
A setPhone() 0 4 1
A setAddress() 0 4 1
A setDate() 0 4 1
A setZipcode() 0 4 1
A setTimeMin() 0 4 1
A setTimeMax() 0 4 1
A setTown() 0 4 1
A setPvzCode() 0 4 1
1
<?php
2
3
namespace floor12\DalliApi\Models;
4
5
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)
66 2
    {
67
        $this->person = $person;
68
        return $this;
69
    }
70
71
    /**
72
     * @param string $phone
73
     * @return Receiver
74 2
     * @return Receiver
75
     */
76 2
    public function setPhone(string $phone)
77 2
    {
78
        $this->phone = $phone;
79
        return $this;
80
    }
81
82
    /**
83
     * @param string $date
84
     * @return Receiver
85 2
     * @return Receiver
86
     */
87 2
    public function setDate(string $date)
88 2
    {
89
        $this->date = $date;
90
        return $this;
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)
121
    {
122
        $this->zipcode = $zipcode;
123
        return $this;
124
    }
125
}
126