<?phpnamespace App\Domain\Entity;use DateTimeInterface;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Uid\Uuid;use Symfony\Component\Validator\Constraints as Assert;class ComisionParitaria{ /** * @var string|null * @Assert\NotBlank(message="not_blank") */ private ?string $convenioColectivo = null; /** * @var DateTimeInterface|null * @Assert\NotBlank(message="not_blank") */ private ?DateTimeInterface $fechaVigenciaInicio = null; /** * @var DateTimeInterface|null * @Assert\NotBlank(message="not_blank") */ private ?DateTimeInterface $fechaVigenciaFin = null; /** * @var string|null * @Assert\NotBlank(message="not_blank") */ private ?string $direccion = null; /** * @var string|null * @Assert\NotBlank(message="not_blank") */ private ?string $cp = null; /** * @var string|null * @Assert\NotBlank(message="not_blank") */ private ?string $telefono = null; /** * @var string|null * @Assert\NotBlank(message="not_blank") */ private ?string $email = null; private ?DateTimeInterface $createdAt = null; private ?DateTimeInterface $updatedAt = null; private ?DateTimeInterface $deletedAt = null; private ?Uuid $id = null; /** * @var Provincia|null * @Assert\NotBlank(message="not_blank") */ private ?Provincia $provincia = null; /** * @var Municipio|null * @Assert\NotBlank(message="not_blank") */ private ?Municipio $municipio = null; private Collection $personas; public function __construct() { $this->personas = new ArrayCollection(); } public function __toString(): string { return $this->getConvenioColectivo()??'---'; } public function getConvenioColectivo(): ?string { return $this->convenioColectivo; } public function setConvenioColectivo(?string $convenioColectivo): static { $this->convenioColectivo = $convenioColectivo; return $this; } public function getDireccion(): ?string { return $this->direccion; } public function setDireccion(?string $direccion): static { $this->direccion = $direccion; return $this; } public function getCp(): ?string { return $this->cp; } public function setCp(?string $cp): static { $this->cp = $cp; return $this; } public function getTelefono(): ?string { return $this->telefono; } public function setTelefono(?string $telefono): static { $this->telefono = $telefono; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(?string $email): static { $this->email = $email; return $this; } public function getCreatedAt(): ?DateTimeInterface { return $this->createdAt; } public function setCreatedAt(DateTimeInterface $createdAt): static { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(DateTimeInterface $updatedAt): static { $this->updatedAt = $updatedAt; return $this; } public function getDeletedAt(): ?DateTimeInterface { return $this->deletedAt; } public function setDeletedAt(?DateTimeInterface $deletedAt): static { $this->deletedAt = $deletedAt; return $this; } public function getId(): ?Uuid { return $this->id; } public function getProvincia(): ?Provincia { return $this->provincia; } public function setProvincia(?Provincia $provincia): static { $this->provincia = $provincia; return $this; } public function getMunicipio(): ?Municipio { return $this->municipio; } public function setMunicipio(?Municipio $municipio): static { $this->municipio = $municipio; return $this; } /** * @return Collection<int, Persona> */ public function getPersonas(): Collection { return $this->personas; } public function getPersonasContacto(): Collection { return $this->getPersonas(); } public function addPersona(Persona $persona): static { if (!$this->personas->contains($persona)) { $this->personas->add($persona); } return $this; } public function removePersona(Persona $persona): static { $this->personas->removeElement($persona); return $this; } public function getFechaVigenciaInicio(): ?\DateTimeInterface { return $this->fechaVigenciaInicio; } public function setFechaVigenciaInicio(?\DateTimeInterface $fechaVigenciaInicio): static { $this->fechaVigenciaInicio = $fechaVigenciaInicio; return $this; } public function getFechaVigenciaFin(): ?\DateTimeInterface { return $this->fechaVigenciaFin; } public function setFechaVigenciaFin(?\DateTimeInterface $fechaVigenciaFin): static { $this->fechaVigenciaFin = $fechaVigenciaFin; return $this; }}