<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* ServiceDeliveryPlace
*
* @ORM\Table(name="service_delivery_place")
* @ORM\Entity
*/
class ServiceDeliveryPlace
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
* @Groups({"agenda-api"})
*/
private $id;
/**
* @var string|null
*
* @ORM\Column(name="label", type="string", length=255, nullable=true, options={"default"="NULL"})
* @Groups({"agenda-api"})
*/
private $label;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\ManyToMany(targetEntity="ServiceDelivery", mappedBy="serviceDeliveryPlace")
*/
private $serviceDelivery = array();
/**
* Constructor
*/
public function __construct()
{
$this->serviceDelivery = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
/**
* @return string|null
*/
public function getLabel(): ?string
{
return $this->label;
}
/**
* @param string|null $label
*/
public function setLabel(?string $label): void
{
$this->label = $label;
}
/**
* @return \Doctrine\Common\Collections\Collection
*/
public function getServiceDelivery()
{
return $this->serviceDelivery;
}
/**
* @param \Doctrine\Common\Collections\Collection $serviceDelivery
*/
public function setServiceDelivery($serviceDelivery): void
{
$this->serviceDelivery = $serviceDelivery;
}
}