src/Entity/ServiceDeliveryPlace.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Serializer\Annotation\Groups;
  5. /**
  6. * ServiceDeliveryPlace
  7. *
  8. * @ORM\Table(name="service_delivery_place")
  9. * @ORM\Entity
  10. */
  11. class ServiceDeliveryPlace
  12. {
  13. /**
  14. * @var int
  15. *
  16. * @ORM\Column(name="id", type="integer", nullable=false)
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="IDENTITY")
  19. * @Groups({"agenda-api"})
  20. */
  21. private $id;
  22. /**
  23. * @var string|null
  24. *
  25. * @ORM\Column(name="label", type="string", length=255, nullable=true, options={"default"="NULL"})
  26. * @Groups({"agenda-api"})
  27. */
  28. private $label;
  29. /**
  30. * @var \Doctrine\Common\Collections\Collection
  31. *
  32. * @ORM\ManyToMany(targetEntity="ServiceDelivery", mappedBy="serviceDeliveryPlace")
  33. */
  34. private $serviceDelivery = array();
  35. /**
  36. * Constructor
  37. */
  38. public function __construct()
  39. {
  40. $this->serviceDelivery = new \Doctrine\Common\Collections\ArrayCollection();
  41. }
  42. /**
  43. * @return int
  44. */
  45. public function getId(): int
  46. {
  47. return $this->id;
  48. }
  49. /**
  50. * @param int $id
  51. */
  52. public function setId(int $id): void
  53. {
  54. $this->id = $id;
  55. }
  56. /**
  57. * @return string|null
  58. */
  59. public function getLabel(): ?string
  60. {
  61. return $this->label;
  62. }
  63. /**
  64. * @param string|null $label
  65. */
  66. public function setLabel(?string $label): void
  67. {
  68. $this->label = $label;
  69. }
  70. /**
  71. * @return \Doctrine\Common\Collections\Collection
  72. */
  73. public function getServiceDelivery()
  74. {
  75. return $this->serviceDelivery;
  76. }
  77. /**
  78. * @param \Doctrine\Common\Collections\Collection $serviceDelivery
  79. */
  80. public function setServiceDelivery($serviceDelivery): void
  81. {
  82. $this->serviceDelivery = $serviceDelivery;
  83. }
  84. }