1 | <?php |
||
10 | class ContaRecebimentoLancamento implements \JsonSerializable |
||
11 | { |
||
12 | /** |
||
13 | * @var integer |
||
14 | */ |
||
15 | private $id; |
||
16 | |||
17 | /** |
||
18 | * @var ContaRecebimento |
||
19 | */ |
||
20 | private $contaRecebimento; |
||
21 | |||
22 | /** |
||
23 | * @var ContaPayLancamento |
||
24 | */ |
||
25 | private $contaPayLancamento; |
||
26 | |||
27 | /** |
||
28 | * @var Pagamento |
||
29 | */ |
||
30 | private $pagamento; |
||
31 | |||
32 | /** |
||
33 | * @var LancamentoTipo |
||
34 | */ |
||
35 | private $lancamentoTipo; |
||
36 | |||
37 | /** |
||
38 | * @var \DateTime |
||
39 | */ |
||
40 | private $data; |
||
41 | |||
42 | /** |
||
43 | * @var double |
||
44 | */ |
||
45 | private $valorBruto; |
||
46 | |||
47 | /** |
||
48 | * @var double |
||
49 | */ |
||
50 | private $valorLiquido; |
||
51 | |||
52 | /** |
||
53 | * @var double |
||
54 | */ |
||
55 | private $tarifaValor; |
||
56 | |||
57 | /** |
||
58 | * @var double |
||
59 | */ |
||
60 | private $tarifaPercentual; |
||
61 | |||
62 | /** |
||
63 | * @var IntencaoVenda |
||
64 | */ |
||
65 | private $intencaoVenda; |
||
66 | |||
67 | /** |
||
68 | * ContaRecebimentoLancamento constructor. |
||
69 | */ |
||
70 | public function __construct() |
||
73 | |||
74 | /** |
||
75 | * @return int |
||
76 | */ |
||
77 | public function getId() |
||
81 | |||
82 | /** |
||
83 | * @param int $id |
||
84 | * @return ContaRecebimentoLancamento |
||
85 | */ |
||
86 | public function setId($id) |
||
91 | |||
92 | /** |
||
93 | * @return ContaRecebimento |
||
94 | */ |
||
95 | public function getContaRecebimento() |
||
99 | |||
100 | /** |
||
101 | * @param ContaRecebimento $contaRecebimento |
||
102 | * @return ContaRecebimentoLancamento |
||
103 | */ |
||
104 | public function setContaRecebimento($contaRecebimento) |
||
113 | |||
114 | /** |
||
115 | * @return ContaPayLancamento |
||
116 | */ |
||
117 | public function getContaPayLancamento() |
||
121 | |||
122 | /** |
||
123 | * @param ContaPayLancamento $contaPayLancamento |
||
124 | * @return ContaRecebimentoLancamento |
||
125 | */ |
||
126 | public function setContaPayLancamento($contaPayLancamento) |
||
135 | |||
136 | /** |
||
137 | * @return Pagamento |
||
138 | */ |
||
139 | public function getPagamento() |
||
143 | |||
144 | /** |
||
145 | * @param Pagamento $pagamento |
||
146 | * @return ContaRecebimentoLancamento |
||
147 | */ |
||
148 | public function setPagamento($pagamento) |
||
157 | |||
158 | /** |
||
159 | * @return LancamentoTipo |
||
160 | */ |
||
161 | public function getLancamentoTipo() |
||
165 | |||
166 | /** |
||
167 | * @param LancamentoTipo $lancamentoTipo |
||
168 | * @return ContaRecebimentoLancamento |
||
169 | */ |
||
170 | public function setLancamentoTipo($lancamentoTipo) |
||
179 | |||
180 | /** |
||
181 | * @return \DateTime |
||
182 | */ |
||
183 | public function getData() |
||
187 | |||
188 | /** |
||
189 | * @param \DateTime $data |
||
190 | * @return ContaRecebimentoLancamento |
||
191 | */ |
||
192 | public function setData($data) |
||
197 | |||
198 | /** |
||
199 | * @return float |
||
200 | */ |
||
201 | public function getValorBruto() |
||
205 | |||
206 | /** |
||
207 | * @param float $valorBruto |
||
208 | * @return ContaRecebimentoLancamento |
||
209 | */ |
||
210 | public function setValorBruto($valorBruto) |
||
215 | |||
216 | /** |
||
217 | * @return float |
||
218 | */ |
||
219 | public function getValorLiquido() |
||
223 | |||
224 | /** |
||
225 | * @param float $valorLiquido |
||
226 | * @return ContaRecebimentoLancamento |
||
227 | */ |
||
228 | public function setValorLiquido($valorLiquido) |
||
233 | |||
234 | /** |
||
235 | * @return float |
||
236 | */ |
||
237 | public function getTarifaValor() |
||
241 | |||
242 | /** |
||
243 | * @param float $tarifaValor |
||
244 | * @return ContaRecebimentoLancamento |
||
245 | */ |
||
246 | public function setTarifaValor($tarifaValor) |
||
251 | |||
252 | /** |
||
253 | * @return float |
||
254 | */ |
||
255 | public function getTarifaPercentual() |
||
259 | |||
260 | /** |
||
261 | * @param float $tarifaPercentual |
||
262 | * @return ContaRecebimentoLancamento |
||
263 | */ |
||
264 | public function setTarifaPercentual($tarifaPercentual) |
||
269 | |||
270 | /** |
||
271 | * @return IntencaoVenda |
||
272 | */ |
||
273 | public function getIntencaoVenda() |
||
277 | |||
278 | /** |
||
279 | * @param IntencaoVenda $intencaoVenda |
||
280 | * @return ContaRecebimentoLancamento |
||
281 | */ |
||
282 | public function setIntencaoVenda($intencaoVenda) |
||
291 | |||
292 | function jsonSerialize() |
||
308 | |||
309 | |||
310 | } |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a mixed type is assigned to a property that is type hinted more strictly.
For example, imagine you have a variable
$accountId
that can either hold an Id object or false (if there is no account id yet). Your code now assigns that value to theid
property of an instance of theAccount
class. This class holds a proper account, so the id value must no longer be false.Either this assignment is in error or a type check should be added for that assignment.