GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Card::setHolder()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Apoca\Sibs\Brands;
4
5
/**
6
 * Class Card
7
 *
8
 * @package Apoca\Sibs\Brands
9
 */
10
class Card
11
{
12
    /**
13
     * @var int
14
     */
15
    protected $number;
16
17
    /**
18
     * @var string
19
     */
20
    protected $holder;
21
22
    /**
23
     * @var int
24
     */
25
    protected $expiryMonth;
26
27
    /**
28
     * @var int
29
     */
30
    protected $expiryYear;
31
32
    /**
33
     * @var int
34
     */
35
    protected $cvv;
36
37
    /**
38
     * Card constructor.
39
     *
40
     * @param int    $number
41
     * @param string $holder
42
     * @param int    $expiryMonth
43
     * @param int    $expiryYear
44
     * @param int    $cvv
45
     */
46
    public function __construct(int $number, string $holder, int $expiryMonth, int $expiryYear, int $cvv)
47
    {
48
        $this->setNumber($number);
49
        $this->setHolder($holder);
50
        $this->setExpiryMonth($expiryMonth);
51
        $this->setExpiryYear($expiryYear);
52
        $this->setCvv($cvv);
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getNumber(): string
59
    {
60
        return $this->number;
61
    }
62
63
    /**
64
     * @param int $number
65
     */
66
    public function setNumber(int $number): void
67
    {
68
        $this->number = $number;
69
    }
70
71
    /**
72
     * @return string
73
     */
74
    public function getHolder(): string
75
    {
76
        return $this->holder;
77
    }
78
79
    /**
80
     * @param string $holder
81
     */
82
    public function setHolder(string $holder): void
83
    {
84
        $this->holder = $holder;
85
    }
86
87
    /**
88
     * @return int
89
     */
90
    public function getExpiryMonth(): int
91
    {
92
        return $this->expiryMonth;
93
    }
94
95
    /**
96
     * @param int $expiryMonth
97
     */
98
    public function setExpiryMonth(int $expiryMonth): void
99
    {
100
        $this->expiryMonth = $expiryMonth;
101
    }
102
103
    /**
104
     * @return mixed
105
     */
106
    public function getExpiryYear(): int
107
    {
108
        return $this->expiryYear;
109
    }
110
111
    /**
112
     * @param int $expiryYear
113
     */
114
    public function setExpiryYear(int $expiryYear): void
115
    {
116
        $this->expiryYear = $expiryYear;
117
    }
118
119
    /**
120
     * @return int
121
     */
122
    public function getCvv(): int
123
    {
124
        return $this->cvv;
125
    }
126
127
    /**
128
     * @param int $cvv
129
     */
130
    public function setCvv(int $cvv): void
131
    {
132
        $this->cvv = $cvv;
133
    }
134
}