@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | { |
| 221 | 221 | $this->pessoaVendedor = $pessoaVendedor; |
| 222 | 222 | |
| 223 | - if(is_array($this->pessoaVendedor)) |
|
| 223 | + if (is_array($this->pessoaVendedor)) |
|
| 224 | 224 | $this->pessoaVendedor = SerializerHelper::denormalize($this->pessoaVendedor, Pessoa::class); |
| 225 | 225 | |
| 226 | 226 | return $this; |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | { |
| 243 | 243 | $this->pessoaCliente = $pessoaCliente; |
| 244 | 244 | |
| 245 | - if(is_array($this->pessoaCliente)) |
|
| 245 | + if (is_array($this->pessoaCliente)) |
|
| 246 | 246 | $this->pessoaCliente = SerializerHelper::denormalize($this->pessoaCliente, Pessoa::class); |
| 247 | 247 | |
| 248 | 248 | return $this; |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | { |
| 265 | 265 | $this->formaPagamento = $formaPagamento; |
| 266 | 266 | |
| 267 | - if(is_array($this->formaPagamento)) |
|
| 267 | + if (is_array($this->formaPagamento)) |
|
| 268 | 268 | $this->formaPagamento = SerializerHelper::denormalize($this->formaPagamento, FormaPagamento::class); |
| 269 | 269 | |
| 270 | 270 | return $this; |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | { |
| 287 | 287 | $this->terminal = $terminal; |
| 288 | 288 | |
| 289 | - if(is_array($this->terminal)) |
|
| 289 | + if (is_array($this->terminal)) |
|
| 290 | 290 | $this->terminal = SerializerHelper::denormalize($this->terminal, Terminal::class); |
| 291 | 291 | |
| 292 | 292 | return $this; |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | { |
| 309 | 309 | $this->pedido = $pedido; |
| 310 | 310 | |
| 311 | - if(is_array($this->pedido)) |
|
| 311 | + if (is_array($this->pedido)) |
|
| 312 | 312 | $this->pedido = SerializerHelper::denormalize($this->pedido, Pedido::class); |
| 313 | 313 | |
| 314 | 314 | return $this; |
@@ -330,7 +330,7 @@ discard block |
||
| 330 | 330 | { |
| 331 | 331 | $this->operador = $operador; |
| 332 | 332 | |
| 333 | - if(is_array($this->operador)) |
|
| 333 | + if (is_array($this->operador)) |
|
| 334 | 334 | $this->operador = SerializerHelper::denormalize($this->operador, Operador::class); |
| 335 | 335 | |
| 336 | 336 | return $this; |
@@ -352,7 +352,7 @@ discard block |
||
| 352 | 352 | { |
| 353 | 353 | $this->contaRecebimentoLancamento = $contaRecebimentoLancamento; |
| 354 | 354 | |
| 355 | - if(is_array($this->contaRecebimentoLancamento)) |
|
| 355 | + if (is_array($this->contaRecebimentoLancamento)) |
|
| 356 | 356 | $this->contaRecebimentoLancamento = SerializerHelper::denormalize($this->contaRecebimentoLancamento, ContaRecebimentoLancamento::class); |
| 357 | 357 | |
| 358 | 358 | return $this; |
@@ -374,7 +374,7 @@ discard block |
||
| 374 | 374 | { |
| 375 | 375 | $this->pagamentoRecorrenteLancamento = $pagamentoRecorrenteLancamento; |
| 376 | 376 | |
| 377 | - if(is_array($this->pagamentoRecorrenteLancamento)) |
|
| 377 | + if (is_array($this->pagamentoRecorrenteLancamento)) |
|
| 378 | 378 | $this->pagamentoRecorrenteLancamento = SerializerHelper::denormalize($this->pagamentoRecorrenteLancamento, PagamentoRecorrenteLancamento::class); |
| 379 | 379 | |
| 380 | 380 | return $this; |
@@ -396,7 +396,7 @@ discard block |
||
| 396 | 396 | { |
| 397 | 397 | $this->intencaoVendaStatus = $intencaoVendaStatus; |
| 398 | 398 | |
| 399 | - if(is_array($this->intencaoVendaStatus)) |
|
| 399 | + if (is_array($this->intencaoVendaStatus)) |
|
| 400 | 400 | $this->intencaoVendaStatus = SerializerHelper::denormalize($this->intencaoVendaStatus, IntencaoVendaStatus::class); |
| 401 | 401 | |
| 402 | 402 | return $this; |
@@ -455,10 +455,10 @@ discard block |
||
| 455 | 455 | |
| 456 | 456 | $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data); |
| 457 | 457 | |
| 458 | - if(empty($this->data)) |
|
| 458 | + if (empty($this->data)) |
|
| 459 | 459 | $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data); |
| 460 | 460 | |
| 461 | - if(empty($this->data)) |
|
| 461 | + if (empty($this->data)) |
|
| 462 | 462 | $this->data = \DateTime::createFromFormat('d/m/Y H:i', $data); |
| 463 | 463 | |
| 464 | 464 | return $this; |
@@ -642,9 +642,9 @@ discard block |
||
| 642 | 642 | { |
| 643 | 643 | //$this->itemProdutos = $itemProdutos; |
| 644 | 644 | |
| 645 | - if(is_array($itemProdutos)) |
|
| 645 | + if (is_array($itemProdutos)) |
|
| 646 | 646 | foreach ($itemProdutos as $itemProduto) { |
| 647 | - $this->itemProdutos[] = SerializerHelper::denormalize( |
|
| 647 | + $this->itemProdutos[ ] = SerializerHelper::denormalize( |
|
| 648 | 648 | $itemProduto, ItemProduto::class); |
| 649 | 649 | } |
| 650 | 650 | |
@@ -665,9 +665,9 @@ discard block |
||
| 665 | 665 | */ |
| 666 | 666 | public function setPagamentosExterno($pagamentosExterno) |
| 667 | 667 | { |
| 668 | - if(is_array($pagamentosExterno)) |
|
| 668 | + if (is_array($pagamentosExterno)) |
|
| 669 | 669 | foreach ($pagamentosExterno as $pagamentoExterno) { |
| 670 | - $this->pagamentosExterno[] = SerializerHelper::denormalize( |
|
| 670 | + $this->pagamentosExterno[ ] = SerializerHelper::denormalize( |
|
| 671 | 671 | $pagamentoExterno, PagamentoExterno::class); |
| 672 | 672 | } |
| 673 | 673 | |
@@ -689,9 +689,9 @@ discard block |
||
| 689 | 689 | public function setProdutos($produtos) |
| 690 | 690 | { |
| 691 | 691 | |
| 692 | - if(is_array($produtos)) |
|
| 692 | + if (is_array($produtos)) |
|
| 693 | 693 | foreach ($produtos as $produto) { |
| 694 | - $this->produtos[] = SerializerHelper::denormalize( |
|
| 694 | + $this->produtos[ ] = SerializerHelper::denormalize( |
|
| 695 | 695 | $produto, ItemProduto::class); |
| 696 | 696 | } |
| 697 | 697 | |
@@ -822,7 +822,7 @@ discard block |
||
| 822 | 822 | { |
| 823 | 823 | $this->vendedor = $vendedor; |
| 824 | 824 | |
| 825 | - if(is_array($this->vendedor)) |
|
| 825 | + if (is_array($this->vendedor)) |
|
| 826 | 826 | $this->vendedor = SerializerHelper::denormalize($this->pessoaVendedor, Pessoa::class); |
| 827 | 827 | |
| 828 | 828 | return $this; |
@@ -860,9 +860,9 @@ discard block |
||
| 860 | 860 | */ |
| 861 | 861 | public function setPagamentosExternos($pagamentosExternos) |
| 862 | 862 | { |
| 863 | - if(is_array($pagamentosExternos)) |
|
| 863 | + if (is_array($pagamentosExternos)) |
|
| 864 | 864 | foreach ($pagamentosExternos as $pagamentoExterno) { |
| 865 | - $this->pagamentosExternos[] = SerializerHelper::denormalize( |
|
| 865 | + $this->pagamentosExternos[ ] = SerializerHelper::denormalize( |
|
| 866 | 866 | $pagamentoExterno, PagamentoExterno::class); |
| 867 | 867 | } |
| 868 | 868 | |