src/Entity/Recebimento.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * Recebimento
  7.  *
  8.  * @ORM\Table(name="recebimento")
  9.  * @ORM\Entity(repositoryClass="App\Repository\RecebimentoRepository")
  10.  */
  11. class Recebimento
  12. {
  13.     /**
  14.      * @var \Ramsey\Uuid\UuidInterface
  15.      *
  16.      * @ORM\Id
  17.      *  @ORM\Column(type="uuid", unique=true)
  18.      * @ORM\GeneratedValue(strategy="CUSTOM")
  19.      * @ORM\CustomIdGenerator(class="Ramsey\Uuid\Doctrine\UuidGenerator")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var \DateTime
  24.      *
  25.      * @ORM\Column(name="data", type="datetime", nullable=true)
  26.      */
  27.     private $data;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity="App\Entity\Terceiro", inversedBy="cliente")
  30.      */
  31.     private $cliente;
  32.     /**
  33.      * @var float
  34.      *
  35.      * @ORM\Column(name="valor", type="float", nullable=true)
  36.      */
  37.     private $valor;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="descricao", type="string", length=255, nullable=true)
  42.      */
  43.     private $descricao;
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(name="referencia", type="string", length=25, nullable=true)
  48.      */
  49.     private $referencia;
  50.     /**
  51.      * @ORM\ManyToOne(targetEntity="App\Entity\CategoriaMovimento", inversedBy="categoria")
  52.      */
  53.     private $categoria;
  54.     /**
  55.      * @ORM\ManyToOne(targetEntity="App\Entity\ContaBancaria", inversedBy="contaDestino")
  56.      */
  57.     private $contaDestino;
  58.     /**
  59.      * @ORM\OneToMany(targetEntity="App\Entity\Parcela", mappedBy="parcelas")
  60.      */
  61.     private $parcelas;
  62.     /**
  63.      * @var bool
  64.      *
  65.      * @ORM\Column(name="continuo", type="boolean", nullable=true)
  66.      */
  67.     private $continuo;
  68.     /**
  69.      * @ORM\Column(type="string")
  70.      *
  71.      * @Assert\NotBlank(message="Please, upload the product brochure as a PDF file.")
  72.      * @Assert\File(mimeTypes={ "application/pdf" })
  73.      */
  74.     private $anexo;
  75.     /**
  76.      * @ORM\ManyToOne(targetEntity="App\Entity\ContaBancaria", inversedBy="contaBancaria")
  77.      */
  78.     private $contaBancaria;
  79.     /**
  80.      * Get id
  81.      *
  82.      * @return int
  83.      */
  84.     public function getId()
  85.     {
  86.         return $this->id;
  87.     }
  88.     /**
  89.      * Set data
  90.      *
  91.      * @param \DateTime $data
  92.      *
  93.      * @return Recebimento
  94.      */
  95.     public function setData($data)
  96.     {
  97.         $this->data $data;
  98.         return $this;
  99.     }
  100.     /**
  101.      * Get data
  102.      *
  103.      * @return \DateTime
  104.      */
  105.     public function getData()
  106.     {
  107.         return $this->data;
  108.     }
  109.     /**
  110.      * Set cliente
  111.      *
  112.      * @param integer $cliente
  113.      *
  114.      * @return Recebimento
  115.      */
  116.     public function setCliente($cliente)
  117.     {
  118.         $this->cliente $cliente;
  119.         return $this;
  120.     }
  121.     /**
  122.      * Get cliente
  123.      *
  124.      * @return int
  125.      */
  126.     public function getCliente()
  127.     {
  128.         return $this->cliente;
  129.     }
  130.     /**
  131.      * Set valor
  132.      *
  133.      * @param float $valor
  134.      *
  135.      * @return Recebimento
  136.      */
  137.     public function setValor($valor)
  138.     {
  139.         $this->valor $valor;
  140.         return $this;
  141.     }
  142.     /**
  143.      * Get valor
  144.      *
  145.      * @return float
  146.      */
  147.     public function getValor()
  148.     {
  149.         return $this->valor;
  150.     }
  151.     /**
  152.      * Set descricao
  153.      *
  154.      * @param string $descricao
  155.      *
  156.      * @return Recebimento
  157.      */
  158.     public function setDescricao($descricao)
  159.     {
  160.         $this->descricao $descricao;
  161.         return $this;
  162.     }
  163.     /**
  164.      * Get descricao
  165.      *
  166.      * @return string
  167.      */
  168.     public function getDescricao()
  169.     {
  170.         return $this->descricao;
  171.     }
  172.     /**
  173.      * Set referencia
  174.      *
  175.      * @param string $referencia
  176.      *
  177.      * @return Recebimento
  178.      */
  179.     public function setReferencia($referencia)
  180.     {
  181.         $this->referencia $referencia;
  182.         return $this;
  183.     }
  184.     /**
  185.      * Get referencia
  186.      *
  187.      * @return string
  188.      */
  189.     public function getReferencia()
  190.     {
  191.         return $this->referencia;
  192.     }
  193.     /**
  194.      * Set categoria
  195.      *
  196.      * @param CategoriaMovimento $categoria
  197.      *
  198.      * @return Recebimento
  199.      */
  200.     public function setCategoria($categoria)
  201.     {
  202.         $this->categoria $categoria;
  203.         return $this;
  204.     }
  205.     /**
  206.      * Get categoria
  207.      *
  208.      * @return int
  209.      */
  210.     public function getCategoria()
  211.     {
  212.         return $this->categoria;
  213.     }
  214.     /**
  215.      * Set contaDestino
  216.      *
  217.      * @param integer $contaDestino
  218.      *
  219.      * @return Recebimento
  220.      */
  221.     public function setContaDestino($contaDestino)
  222.     {
  223.         $this->contaDestino $contaDestino;
  224.         return $this;
  225.     }
  226.     /**
  227.      * Get contaDestino
  228.      *
  229.      * @return int
  230.      */
  231.     public function getContaDestino()
  232.     {
  233.         return $this->contaDestino;
  234.     }
  235.     /**
  236.      * Set parcelas
  237.      *
  238.      * @param integer $parcelas
  239.      *
  240.      * @return Recebimento
  241.      */
  242.     public function setParcelas($parcelas)
  243.     {
  244.         $this->parcelas $parcelas;
  245.         return $this;
  246.     }
  247.     /**
  248.      * Get parcelas
  249.      *
  250.      * @return int
  251.      */
  252.     public function getParcelas()
  253.     {
  254.         return $this->parcelas;
  255.     }
  256.     /**
  257.      * Set continuo
  258.      *
  259.      * @param  $continuo
  260.      *
  261.      * @return Recebimento
  262.      */
  263.     public function setContinuo($continuo)
  264.     {
  265.         $this->continuo $continuo;
  266.         return $this;
  267.     }
  268.     /**
  269.      * Get continuo
  270.      *
  271.      * @return bool
  272.      */
  273.     public function getContinuo()
  274.     {
  275.         return $this->continuo;
  276.     }
  277.     /**
  278.      * Set anexo
  279.      *
  280.      * @param string $anexo
  281.      *
  282.      * @return Recebimento
  283.      */
  284.     public function setAnexo($anexo)
  285.     {
  286.         $this->anexo $anexo;
  287.         return $this;
  288.     }
  289.     /**
  290.      * Get anexo
  291.      *
  292.      * @return string
  293.      */
  294.     public function getAnexo()
  295.     {
  296.         return $this->anexo;
  297.     }
  298.     /**
  299.      * @return mixed
  300.      */
  301.     public function getContaBancaria()
  302.     {
  303.         return $this->contaBancaria;
  304.     }
  305.     /**
  306.      * @param mixed $contaBancaria
  307.      */
  308.     public function setContaBancaria($contaBancaria)
  309.     {
  310.         $this->contaBancaria $contaBancaria;
  311.     }
  312. }