Card   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 84
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 8
eloc 17
dl 0
loc 84
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getExpireMonth() 0 3 1
A getNumber() 0 3 1
A setExpireYear() 0 4 1
A getSecurityCode() 0 3 1
A getExpireYear() 0 3 1
A setSecurityCode() 0 4 1
A setExpireMonth() 0 4 1
A setNumber() 0 4 1
1
<?php
2
namespace Paranoia\Request\Resource;
3
4
class Card implements ResourceInterface
5
{
6
    /** @var string */
7
    private $number;
8
9
    /** @var string */
10
    private $securityCode;
11
12
    /** @var integer */
13
    private $expireMonth;
14
15
    /** @var integer */
16
    private $expireYear;
17
18
    /**
19
     * @return string
20
     */
21
    public function getNumber()
22
    {
23
        return $this->number;
24
    }
25
26
    /**
27
     * @param string $number
28
     * @return Card
29
     */
30
    public function setNumber($number)
31
    {
32
        $this->number = $number;
33
        return $this;
34
    }
35
36
    /**
37
     * @return string
38
     */
39
    public function getSecurityCode()
40
    {
41
        return $this->securityCode;
42
    }
43
44
    /**
45
     * @param string $securityCode
46
     * @return Card
47
     */
48
    public function setSecurityCode($securityCode)
49
    {
50
        $this->securityCode = $securityCode;
51
        return $this;
52
    }
53
54
    /**
55
     * @return int
56
     */
57
    public function getExpireMonth()
58
    {
59
        return $this->expireMonth;
60
    }
61
62
    /**
63
     * @param int $expireMonth
64
     * @return Card
65
     */
66
    public function setExpireMonth($expireMonth)
67
    {
68
        $this->expireMonth = $expireMonth;
69
        return $this;
70
    }
71
72
    /**
73
     * @return int
74
     */
75
    public function getExpireYear()
76
    {
77
        return $this->expireYear;
78
    }
79
80
    /**
81
     * @param int $expireYear
82
     * @return Card
83
     */
84
    public function setExpireYear($expireYear)
85
    {
86
        $this->expireYear = $expireYear;
87
        return $this;
88
    }
89
}
90