src/Entity/System/RefundNotice.php line 14

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\System;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Table(name="ps_refund_aviso")
  7. *
  8. * @ORM\Entity(repositoryClass="App\Repository\System\RefundNoticeRepository")
  9. */
  10. class RefundNotice
  11. {
  12. /**
  13. * @ORM\Id()
  14. *
  15. * @ORM\GeneratedValue(strategy="AUTO")
  16. *
  17. * @ORM\Column(name="id_aviso", type="integer")
  18. */
  19. private ?int $id = null;
  20. /**
  21. * @ORM\ManyToOne (targetEntity="App\Entity\System\Customer")
  22. *
  23. * @ORM\JoinColumn(name="id_customer", referencedColumnName="id_customer", nullable=false)
  24. */
  25. private Customer $customer;
  26. /**
  27. * @var float
  28. *
  29. * @ORM\Column(name="importe", type="float", nullable=false, options={"default" : 0.000000})
  30. */
  31. private float $importe = 0.0;
  32. /**
  33. * @ORM\Column(type="datetime", nullable=true)
  34. */
  35. private ?\DateTime $dateLast = null;
  36. public function getId(): ?int
  37. {
  38. return $this->id;
  39. }
  40. public function getCustomer(): Customer
  41. {
  42. return $this->customer;
  43. }
  44. public function setCustomer(Customer $customer): RefundNotice
  45. {
  46. $this->customer = $customer;
  47. return $this;
  48. }
  49. public function getImporte(): float
  50. {
  51. return $this->importe;
  52. }
  53. public function setImporte(float $importe): RefundNotice
  54. {
  55. $this->importe = $importe;
  56. return $this;
  57. }
  58. public function getDateLast(): \DateTime
  59. {
  60. return $this->dateLast;
  61. }
  62. public function setDateLast(\DateTime $dateLast): RefundNotice
  63. {
  64. $this->dateLast = $dateLast;
  65. return $this;
  66. }
  67. }