for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: a.moreira
* Date: 20/10/2016
* Time: 10:00
*/
namespace Integracao\ControlPay\Model;
use Integracao\ControlPay\Helpers\SerializerHelper;
* Class FormaPagamento
* @package Integracao\ControlPay\Model
class FormaPagamento implements \JsonSerializable
{
* @var integer
private $id;
* @var string
private $nome;
private $modalidade;
* @var FluxoPagamento
private $fluxoPagamento;
* FormaPagamento constructor.
public function __construct()
}
* @return int
public function getId()
return $this->id;
* @param int $id
* @return FormaPagamento
public function setId($id)
$this->id = $id;
return $this;
* @return string
public function getNome()
return $this->nome;
* @param string $nome
public function setNome($nome)
$this->nome = $nome;
public function getModalidade()
return $this->modalidade;
* @param string $modalidade
public function setModalidade($modalidade)
$this->modalidade = $modalidade;
* @return FluxoPagamento
public function getFluxoPagamento()
return $this->fluxoPagamento;
* @param FluxoPagamento $fluxoPagamento
public function setFluxoPagamento($fluxoPagamento)
$this->fluxoPagamento = $fluxoPagamento;
if(is_array($this->fluxoPagamento))
$this->fluxoPagamento = SerializerHelper::denormalize($this->fluxoPagamento, FluxoPagamento::class);
function jsonSerialize()
return [
'id' => $this->id,
'nome' => $this->nome,
'modalidade' => $this->modalidade,
'fluxoPagamento' => $this->fluxoPagamento,
];