<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Recebimento
*
* @ORM\Table(name="recebimento")
* @ORM\Entity(repositoryClass="App\Repository\RecebimentoRepository")
*/
class Recebimento
{
/**
* @var \Ramsey\Uuid\UuidInterface
*
* @ORM\Id
* @ORM\Column(type="uuid", unique=true)
* @ORM\GeneratedValue(strategy="CUSTOM")
* @ORM\CustomIdGenerator(class="Ramsey\Uuid\Doctrine\UuidGenerator")
*/
private $id;
/**
* @var \DateTime
*
* @ORM\Column(name="data", type="datetime", nullable=true)
*/
private $data;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Terceiro", inversedBy="cliente")
*/
private $cliente;
/**
* @var float
*
* @ORM\Column(name="valor", type="float", nullable=true)
*/
private $valor;
/**
* @var string
*
* @ORM\Column(name="descricao", type="string", length=255, nullable=true)
*/
private $descricao;
/**
* @var string
*
* @ORM\Column(name="referencia", type="string", length=25, nullable=true)
*/
private $referencia;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\CategoriaMovimento", inversedBy="categoria")
*/
private $categoria;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\ContaBancaria", inversedBy="contaDestino")
*/
private $contaDestino;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Parcela", mappedBy="parcelas")
*/
private $parcelas;
/**
* @var bool
*
* @ORM\Column(name="continuo", type="boolean", nullable=true)
*/
private $continuo;
/**
* @ORM\Column(type="string")
*
* @Assert\NotBlank(message="Please, upload the product brochure as a PDF file.")
* @Assert\File(mimeTypes={ "application/pdf" })
*/
private $anexo;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\ContaBancaria", inversedBy="contaBancaria")
*/
private $contaBancaria;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set data
*
* @param \DateTime $data
*
* @return Recebimento
*/
public function setData($data)
{
$this->data = $data;
return $this;
}
/**
* Get data
*
* @return \DateTime
*/
public function getData()
{
return $this->data;
}
/**
* Set cliente
*
* @param integer $cliente
*
* @return Recebimento
*/
public function setCliente($cliente)
{
$this->cliente = $cliente;
return $this;
}
/**
* Get cliente
*
* @return int
*/
public function getCliente()
{
return $this->cliente;
}
/**
* Set valor
*
* @param float $valor
*
* @return Recebimento
*/
public function setValor($valor)
{
$this->valor = $valor;
return $this;
}
/**
* Get valor
*
* @return float
*/
public function getValor()
{
return $this->valor;
}
/**
* Set descricao
*
* @param string $descricao
*
* @return Recebimento
*/
public function setDescricao($descricao)
{
$this->descricao = $descricao;
return $this;
}
/**
* Get descricao
*
* @return string
*/
public function getDescricao()
{
return $this->descricao;
}
/**
* Set referencia
*
* @param string $referencia
*
* @return Recebimento
*/
public function setReferencia($referencia)
{
$this->referencia = $referencia;
return $this;
}
/**
* Get referencia
*
* @return string
*/
public function getReferencia()
{
return $this->referencia;
}
/**
* Set categoria
*
* @param CategoriaMovimento $categoria
*
* @return Recebimento
*/
public function setCategoria($categoria)
{
$this->categoria = $categoria;
return $this;
}
/**
* Get categoria
*
* @return int
*/
public function getCategoria()
{
return $this->categoria;
}
/**
* Set contaDestino
*
* @param integer $contaDestino
*
* @return Recebimento
*/
public function setContaDestino($contaDestino)
{
$this->contaDestino = $contaDestino;
return $this;
}
/**
* Get contaDestino
*
* @return int
*/
public function getContaDestino()
{
return $this->contaDestino;
}
/**
* Set parcelas
*
* @param integer $parcelas
*
* @return Recebimento
*/
public function setParcelas($parcelas)
{
$this->parcelas = $parcelas;
return $this;
}
/**
* Get parcelas
*
* @return int
*/
public function getParcelas()
{
return $this->parcelas;
}
/**
* Set continuo
*
* @param $continuo
*
* @return Recebimento
*/
public function setContinuo($continuo)
{
$this->continuo = $continuo;
return $this;
}
/**
* Get continuo
*
* @return bool
*/
public function getContinuo()
{
return $this->continuo;
}
/**
* Set anexo
*
* @param string $anexo
*
* @return Recebimento
*/
public function setAnexo($anexo)
{
$this->anexo = $anexo;
return $this;
}
/**
* Get anexo
*
* @return string
*/
public function getAnexo()
{
return $this->anexo;
}
/**
* @return mixed
*/
public function getContaBancaria()
{
return $this->contaBancaria;
}
/**
* @param mixed $contaBancaria
*/
public function setContaBancaria($contaBancaria)
{
$this->contaBancaria = $contaBancaria;
}
}