Passed
Push — master ( 98de4f...224db0 )
by Thiago
30s
created

Customer::getIdentityNumber()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
namespace MrPrompt\ShipmentCommon\Base;
3
4
/**
5
 *
6
 * @author Thiago Paes <[email protected]>
7
 */
8
class Customer extends Person
9
{
10
    /**
11
     * @var int
12
     */
13
    private $code;
14
15
    /**
16
     * @var int
17
     */
18
    private $identityNumber;
19
20
    /**
21
     * @var bool
22
     */
23
    private $helpfulMaturity;
24
25
    /**
26
     * @var int
27
     */
28
    private $workingDays;
29
30
    /**
31
     * @return int
32
     */
33 1
    public function getCode(): int
34
    {
35 1
        return $this->code;
36
    }
37
38
    /**
39
     * @param int $code
40
     */
41 2
    public function setCode(int $code)
42
    {
43 2
        $this->code = $code;
44 2
    }
45
46
    /**
47
     * @return int
48
     */
49 1
    public function getIdentityNumber(): int
50
    {
51 1
        return $this->identityNumber;
52
    }
53
54
    /**
55
     * @param int $identityNumber
56
     */
57 1
    public function setIdentityNumber(int $identityNumber)
58
    {
59 1
        $this->identityNumber = $identityNumber;
60 1
    }
61
62
    /**
63
     * @return mixed
64
     */
65 1
    public function getHelpfulMaturity(): bool
66
    {
67 1
        return $this->helpfulMaturity;
68
    }
69
70
    /**
71
     * @param boolean $helpfulMaturity
72
     */
73 1
    public function setHelpfulMaturity(bool $helpfulMaturity = true)
74
    {
75 1
        $this->helpfulMaturity = $helpfulMaturity;
76 1
    }
77
78
    /**
79
     * @return int
80
     */
81 1
    public function getWorkingDays(): int
82
    {
83 1
        return $this->workingDays;
84
    }
85
86
    /**
87
     * @param int $workingDays
88
     */
89 1
    public function setWorkingDays(int $workingDays)
90
    {
91 1
        $this->workingDays = $workingDays;
92 1
    }
93
}
94