src/Entity/Vestiging.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\VestigingRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassVestigingRepository::class)]
  8. class Vestiging
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $name null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $adres null;
  18.     #[ORM\Column(length255nullabletrue)]
  19.     private ?string $postcode null;
  20.     #[ORM\Column(length255nullabletrue)]
  21.     private ?string $plaats null;
  22.     #[ORM\Column(length20nullabletrue)]
  23.     private ?string $telefoon null;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $email null;
  26.     #[ORM\Column(length25)]
  27.     private ?string $codenaam null;
  28.     #[ORM\Column(length3)]
  29.     private ?string $codeletter null;
  30.     #[ORM\OneToMany(mappedBy'vestiging'targetEntityProspect::class)]
  31.     private Collection $prospects;
  32.     #[ORM\OneToMany(mappedBy'vestiging'targetEntityReminder::class)]
  33.     private Collection $reminders;
  34.     public function __construct()
  35.     {
  36.         $this->prospects = new ArrayCollection();
  37.         $this->reminders = new ArrayCollection();
  38.     }
  39.     public function __toString(): string
  40.     {
  41.         return $this->codenaam;
  42.     }
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getName(): ?string
  48.     {
  49.         return $this->name;
  50.     }
  51.     public function setName(string $name): self
  52.     {
  53.         $this->name $name;
  54.         return $this;
  55.     }
  56.     public function getAdres(): ?string
  57.     {
  58.         return $this->adres;
  59.     }
  60.     public function setAdres(?string $adres): self
  61.     {
  62.         $this->adres $adres;
  63.         return $this;
  64.     }
  65.     public function getPostcode(): ?string
  66.     {
  67.         return $this->postcode;
  68.     }
  69.     public function setPostcode(?string $postcode): self
  70.     {
  71.         $this->postcode $postcode;
  72.         return $this;
  73.     }
  74.     public function getPlaats(): ?string
  75.     {
  76.         return $this->plaats;
  77.     }
  78.     public function setPlaats(?string $plaats): self
  79.     {
  80.         $this->plaats $plaats;
  81.         return $this;
  82.     }
  83.     public function getTelefoon(): ?string
  84.     {
  85.         return $this->telefoon;
  86.     }
  87.     public function setTelefoon(?string $telefoon): self
  88.     {
  89.         $this->telefoon $telefoon;
  90.         return $this;
  91.     }
  92.     public function getEmail(): ?string
  93.     {
  94.         return $this->email;
  95.     }
  96.     public function setEmail(?string $email): self
  97.     {
  98.         $this->email $email;
  99.         return $this;
  100.     }
  101.     public function getCodenaam(): ?string
  102.     {
  103.         return $this->codenaam;
  104.     }
  105.     public function setCodenaam(string $codenaam): self
  106.     {
  107.         $this->codenaam $codenaam;
  108.         return $this;
  109.     }
  110.     public function getCodeletter(): ?string
  111.     {
  112.         return $this->codeletter;
  113.     }
  114.     public function setCodeletter(string $codeletter): self
  115.     {
  116.         $this->codeletter $codeletter;
  117.         return $this;
  118.     }
  119.     /**
  120.      * @return Collection<int, Prospect>
  121.      */
  122.     public function getProspects(): Collection
  123.     {
  124.         return $this->prospects;
  125.     }
  126.     public function addProspect(Prospect $prospect): self
  127.     {
  128.         if (!$this->prospects->contains($prospect)) {
  129.             $this->prospects->add($prospect);
  130.             $prospect->setVestiging($this);
  131.         }
  132.         return $this;
  133.     }
  134.     public function removeProspect(Prospect $prospect): self
  135.     {
  136.         if ($this->prospects->removeElement($prospect)) {
  137.             // set the owning side to null (unless already changed)
  138.             if ($prospect->getVestiging() === $this) {
  139.                 $prospect->setVestiging(null);
  140.             }
  141.         }
  142.         return $this;
  143.     }
  144.     /**
  145.      * @return Collection<int, Reminder>
  146.      */
  147.     public function getReminders(): Collection
  148.     {
  149.         return $this->reminders;
  150.     }
  151.     public function addReminder(Reminder $reminder): static
  152.     {
  153.         if (!$this->reminders->contains($reminder)) {
  154.             $this->reminders->add($reminder);
  155.             $reminder->setVestiging($this);
  156.         }
  157.         return $this;
  158.     }
  159.     public function removeReminder(Reminder $reminder): static
  160.     {
  161.         if ($this->reminders->removeElement($reminder)) {
  162.             // set the owning side to null (unless already changed)
  163.             if ($reminder->getVestiging() === $this) {
  164.                 $reminder->setVestiging(null);
  165.             }
  166.         }
  167.         return $this;
  168.     }
  169. }