Passed
Push — master ( 3c19d1...2ca449 )
by Evgenii
09:11
created

Receiver::setPhone()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
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 $person;
14
    /** @var string */
15
    public $phone;
16
    /** @var string */
17
    public $date;
18
    /** @var string */
19
    public $time_min;
20
    /** @var string */
21
    public $time_max;
22
    /** @var string */
23
    public $zipcode;
24
25
    /**
26
     * @param string $town
27
     * @return Receiver
28
     * @return Receiver
29
     */
30 2
    public function setTown(string $town)
31
    {
32 2
        $this->town = $town;
33 2
        return $this;
34
    }
35
36
    /**
37
     * @param string $address
38
     * @return Receiver
39
     * @return Receiver
40
     */
41 3
    public function setAddress(string $address)
42
    {
43 3
        $this->address = $address;
44 3
        return $this;
45
    }
46
47
    /**
48
     * @param string $person
49
     * @return Receiver
50
     * @return Receiver
51
     */
52 3
    public function setPerson(string $person)
53
    {
54 3
        $this->person = $person;
55 3
        return $this;
56
    }
57
58
    /**
59
     * @param string $phone
60
     * @return Receiver
61
     * @return Receiver
62
     */
63 2
    public function setPhone(string $phone)
64
    {
65 2
        $this->phone = $phone;
66 2
        return $this;
67
    }
68
69
    /**
70
     * @param string $date
71
     * @return Receiver
72
     * @return Receiver
73
     */
74 2
    public function setDate(string $date)
75
    {
76 2
        $this->date = $date;
77 2
        return $this;
78
    }
79
80
    /**
81
     * @param string $time_min
82
     * @return Receiver
83
     * @return Receiver
84
     */
85 2
    public function setTimeMin(string $time_min)
86
    {
87 2
        $this->time_min = $time_min;
88 2
        return $this;
89
    }
90
91
    /**
92
     * @param string $time_max
93
     * @return Receiver
94
     * @return Receiver
95
     */
96 2
    public function setTimeMax(string $time_max)
97
    {
98 2
        $this->time_max = $time_max;
99 2
        return $this;
100
    }
101
102
    /**
103
     * @param string $zipcode
104
     * @return Receiver
105
     * @return Receiver
106
     */
107 2
    public function setZipcode(string $zipcode)
108
    {
109 2
        $this->zipcode = $zipcode;
110 2
        return $this;
111
    }
112
}
113