1 | <?php |
||
11 | class CreditCard |
||
12 | { |
||
13 | const AMEX = 38; |
||
14 | const MASTERCARD = 39; |
||
15 | const HIPERCARD = 40; |
||
16 | const DINNERS = 41; |
||
17 | const DISCOVER = 45; |
||
18 | const VISA = 42; |
||
19 | const AURA = 51; |
||
20 | const ELO = 60; |
||
21 | const GOODCARD = 61; |
||
22 | const JCB = 62; |
||
23 | const MAIS = 63; |
||
24 | const CABAL = 64; |
||
25 | const SOROCRED = 65; |
||
26 | const SICREDI = 66; |
||
27 | const COOPERCRED = 67; |
||
28 | const AVISTA = 68; |
||
29 | |||
30 | /** |
||
31 | * |
||
32 | * @var numeric |
||
33 | */ |
||
34 | private $number; |
||
35 | |||
36 | /** |
||
37 | * |
||
38 | * @var DateTime |
||
39 | */ |
||
40 | private $validate; |
||
41 | |||
42 | /** |
||
43 | * |
||
44 | * @var numeric |
||
45 | */ |
||
46 | private $security; |
||
47 | |||
48 | /** |
||
49 | * @var numeric |
||
50 | */ |
||
51 | private $flag; |
||
52 | |||
53 | /** |
||
54 | * Constructor |
||
55 | * |
||
56 | * @param int $number |
||
57 | * @param int $security |
||
58 | * @param int $flag |
||
59 | * @param DateTime $validate |
||
60 | */ |
||
61 | 8 | public function __construct( |
|
72 | |||
73 | /** |
||
74 | * @return the $number |
||
75 | */ |
||
76 | 1 | public function getNumber(): int |
|
80 | |||
81 | /** |
||
82 | * @param int $number |
||
83 | */ |
||
84 | 1 | public function setNumber(int $number) |
|
88 | |||
89 | /** |
||
90 | * @return the $validate |
||
91 | */ |
||
92 | 1 | public function getValidate(): DateTime |
|
96 | |||
97 | /** |
||
98 | * @param DateTime $validate |
||
99 | */ |
||
100 | 1 | public function setValidate(DateTime $validate) |
|
104 | |||
105 | /** |
||
106 | * @return the $security |
||
107 | */ |
||
108 | 1 | public function getSecurityNumber(): int |
|
112 | |||
113 | /** |
||
114 | * @param int $security |
||
115 | */ |
||
116 | 1 | public function setSecurityNumber(int $security) |
|
120 | |||
121 | /** |
||
122 | * @return int |
||
123 | */ |
||
124 | 1 | public function getFlag(): int |
|
128 | |||
129 | /** |
||
130 | * @param int $flag |
||
131 | */ |
||
132 | 1 | public function setFlag(int $flag) |
|
136 | } |
||
137 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..