src/Entity/Pagamento.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="pagamentos")
  9.  * @ORM\Entity(repositoryClass="App\Repository\RecebimentoRepository")
  10.  */
  11. class Pagamento
  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="fornecedor")
  30.      */
  31.     private $fornecedor;
  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.     const name='Credito';
  80.     /**
  81.      * Get id
  82.      *
  83.      * @return int
  84.      */
  85.     public function getId()
  86.     {
  87.         return $this->id;
  88.     }
  89.     /**
  90.      * Set data
  91.      *
  92.      * @param \DateTime $data
  93.      *
  94.      * @return Recebimento
  95.      */
  96.     public function setData($data)
  97.     {
  98.         $this->data $data;
  99.         return $this;
  100.     }
  101.     /**
  102.      * Get data
  103.      *
  104.      * @return \DateTime
  105.      */
  106.     public function getData()
  107.     {
  108.         return $this->data;
  109.     }
  110.     /**
  111.      * Set cliente
  112.      *
  113.      * @param integer $cliente
  114.      *
  115.      * @return Recebimento
  116.      */
  117.     public function setCliente($cliente)
  118.     {
  119.         $this->cliente $cliente;
  120.         return $this;
  121.     }
  122.     /**
  123.      * Get cliente
  124.      *
  125.      * @return int
  126.      */
  127.     public function getCliente()
  128.     {
  129.         return $this->cliente;
  130.     }
  131.     /**
  132.      * Set valor
  133.      *
  134.      * @param float $valor
  135.      *
  136.      * @return Recebimento
  137.      */
  138.     public function setValor($valor)
  139.     {
  140.         $this->valor $valor;
  141.         return $this;
  142.     }
  143.     /**
  144.      * Get valor
  145.      *
  146.      * @return float
  147.      */
  148.     public function getValor()
  149.     {
  150.         return $this->valor;
  151.     }
  152.     /**
  153.      * Set descricao
  154.      *
  155.      * @param string $descricao
  156.      *
  157.      * @return Recebimento
  158.      */
  159.     public function setDescricao($descricao)
  160.     {
  161.         $this->descricao $descricao;
  162.         return $this;
  163.     }
  164.     /**
  165.      * Get descricao
  166.      *
  167.      * @return string
  168.      */
  169.     public function getDescricao()
  170.     {
  171.         return $this->descricao;
  172.     }
  173.     /**
  174.      * Set referencia
  175.      *
  176.      * @param string $referencia
  177.      *
  178.      * @return Recebimento
  179.      */
  180.     public function setReferencia($referencia)
  181.     {
  182.         $this->referencia $referencia;
  183.         return $this;
  184.     }
  185.     /**
  186.      * Get referencia
  187.      *
  188.      * @return string
  189.      */
  190.     public function getReferencia()
  191.     {
  192.         return $this->referencia;
  193.     }
  194.     /**
  195.      * Set categoria
  196.      *
  197.      * @param integer $categoria
  198.      *
  199.      * @return Recebimento
  200.      */
  201.     public function setCategoria($categoria)
  202.     {
  203.         $this->categoria $categoria;
  204.         return $this;
  205.     }
  206.     /**
  207.      * Get categoria
  208.      *
  209.      * @return int
  210.      */
  211.     public function getCategoria()
  212.     {
  213.         return $this->categoria ;
  214.     }
  215.     /**
  216.      * Set contaDestino
  217.      *
  218.      * @param integer $contaDestino
  219.      *
  220.      * @return Recebimento
  221.      */
  222.     public function setContaDestino($contaDestino)
  223.     {
  224.         $this->contaDestino $contaDestino;
  225.         return $this;
  226.     }
  227.     /**
  228.      * Get contaDestino
  229.      *
  230.      * @return int
  231.      */
  232.     public function getContaDestino()
  233.     {
  234.         return $this->contaDestino;
  235.     }
  236.     /**
  237.      * Set parcelas
  238.      *
  239.      * @param integer $parcelas
  240.      *
  241.      * @return Recebimento
  242.      */
  243.     public function setParcelas($parcelas)
  244.     {
  245.         $this->parcelas $parcelas;
  246.         return $this;
  247.     }
  248.     /**
  249.      * Get parcelas
  250.      *
  251.      * @return int
  252.      */
  253.     public function getParcelas()
  254.     {
  255.         return $this->parcelas;
  256.     }
  257.     /**
  258.      * Set continuo
  259.      *
  260.      * @param  $continuo
  261.      *
  262.      * @return Recebimento
  263.      */
  264.     public function setContinuo($continuo)
  265.     {
  266.         $this->continuo $continuo;
  267.         return $this;
  268.     }
  269.     /**
  270.      * Get continuo
  271.      *
  272.      * @return bool
  273.      */
  274.     public function getContinuo()
  275.     {
  276.         return $this->continuo;
  277.     }
  278.     /**
  279.      * Set anexo
  280.      *
  281.      * @param string $anexo
  282.      *
  283.      * @return Recebimento
  284.      */
  285.     public function setAnexo($anexo)
  286.     {
  287.         $this->anexo $anexo;
  288.         return $this;
  289.     }
  290.     /**
  291.      * Get anexo
  292.      *
  293.      * @return string
  294.      */
  295.     public function getAnexo()
  296.     {
  297.         return $this->anexo;
  298.     }
  299.     /**
  300.      * @return mixed
  301.      */
  302.     public function getContaBancaria()
  303.     {
  304.         return $this->contaBancaria;
  305.     }
  306.     /**
  307.      * @param mixed $contaBancaria
  308.      */
  309.     public function setContaBancaria($contaBancaria)
  310.     {
  311.         $this->contaBancaria $contaBancaria;
  312.     }
  313.     /**
  314.      * @return mixed
  315.      */
  316.     public function getFornecedor()
  317.     {
  318.         return $this->fornecedor;
  319.     }
  320.     /**
  321.      * @param mixed $fornecedor
  322.      */
  323.     public function setFornecedor($fornecedor)
  324.     {
  325.         $this->fornecedor $fornecedor;
  326.     }
  327. }