src/Entity/System/SupplierHolidays.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * SupplierHolidays
  6. *
  7. * @ORM\Table(name="supplier_holidays")
  8. *
  9. * @ORM\Entity(repositoryClass="App\Repository\System\SupplierHolidaysRepository")
  10. */
  11. class SupplierHolidays
  12. {
  13. /**
  14. * @var Supplier
  15. *
  16. * @ORM\Id()
  17. *
  18. * @ORM\ManyToOne(targetEntity="App\Entity\System\Supplier")
  19. *
  20. * @ORM\JoinColumn(name="id", referencedColumnName="id_plazo_aprovisionamiento_proveedor")
  21. */
  22. private $id;
  23. /**
  24. * @var string|null
  25. *
  26. * @ORM\Column(type="text" ,nullable=true)
  27. */
  28. private $holidays;
  29. /**
  30. * @return Supplier
  31. */
  32. public function getId(): Supplier
  33. {
  34. return $this->id;
  35. }
  36. /**
  37. * @param Supplier $id
  38. *
  39. * @return SupplierHolidays
  40. */
  41. public function setId(Supplier $id): self
  42. {
  43. $this->id = $id;
  44. return $this;
  45. }
  46. /**
  47. * @return string|null
  48. */
  49. public function getHolidays(): ?string
  50. {
  51. return $this->holidays;
  52. }
  53. /**
  54. * @param string|null $holidays
  55. *
  56. * @return SupplierHolidays
  57. */
  58. public function setHolidays(?string $holidays): self
  59. {
  60. $this->holidays = $holidays;
  61. return $this;
  62. }
  63. }