src/Entity/Uitvaartvereniging.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\UitvaartverenigingRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassUitvaartverenigingRepository::class)]
  8. class Uitvaartvereniging
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $naam null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $wadres null;
  18.     #[ORM\Column(length15nullabletrue)]
  19.     private ?string $wpostcode null;
  20.     #[ORM\Column(length255nullabletrue)]
  21.     private ?string $wwoonplaats null;
  22.     #[ORM\Column(length15nullabletrue)]
  23.     private ?string $telefoon null;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $email null;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $padres null;
  28.     #[ORM\Column(length15nullabletrue)]
  29.     private ?string $ppostcode null;
  30.     #[ORM\Column(length255nullabletrue)]
  31.     private ?string $pwoonplaats null;
  32.     #[ORM\OneToMany(mappedBy'uitvaartvereniging'targetEntityOrder::class)]
  33.     private Collection $orders;
  34.     #[ORM\OneToMany(mappedBy'uitvaartvereniging'targetEntityProspect::class)]
  35.     private Collection $prospects;
  36.     #[ORM\OneToMany(mappedBy'uitvaartvereniging'targetEntityAgent::class)]
  37.     private Collection $agents;
  38.     public function __construct()
  39.     {
  40.         $this->orders = new ArrayCollection();
  41.         $this->prospects = new ArrayCollection();
  42.         $this->agents = new ArrayCollection();
  43.     }
  44.     public function __toString()
  45.     {
  46.         return($this->naam.', '.$this->wwoonplaats);
  47.     }
  48.     
  49.     
  50.     public function getId(): ?int
  51.     {
  52.         return $this->id;
  53.     }
  54.     public function getNaam(): ?string
  55.     {
  56.         return $this->naam;
  57.     }
  58.     public function setNaam(string $naam): self
  59.     {
  60.         $this->naam $naam;
  61.         return $this;
  62.     }
  63.     public function getWadres(): ?string
  64.     {
  65.         return $this->wadres;
  66.     }
  67.     public function setWadres(?string $wadres): self
  68.     {
  69.         $this->wadres $wadres;
  70.         return $this;
  71.     }
  72.     public function getWpostcode(): ?string
  73.     {
  74.         return $this->wpostcode;
  75.     }
  76.     public function setWpostcode(?string $wpostcode): self
  77.     {
  78.         $this->wpostcode $wpostcode;
  79.         return $this;
  80.     }
  81.     public function getWwoonplaats(): ?string
  82.     {
  83.         return $this->wwoonplaats;
  84.     }
  85.     public function setWwoonplaats(?string $wwoonplaats): self
  86.     {
  87.         $this->wwoonplaats $wwoonplaats;
  88.         return $this;
  89.     }
  90.     public function getTelefoon(): ?string
  91.     {
  92.         return $this->telefoon;
  93.     }
  94.     public function setTelefoon(?string $telefoon): self
  95.     {
  96.         $this->telefoon $telefoon;
  97.         return $this;
  98.     }
  99.     public function getEmail(): ?string
  100.     {
  101.         return $this->email;
  102.     }
  103.     public function setEmail(?string $email): self
  104.     {
  105.         $this->email $email;
  106.         return $this;
  107.     }
  108.     public function getPadres(): ?string
  109.     {
  110.         return $this->padres;
  111.     }
  112.     public function setPadres(?string $padres): self
  113.     {
  114.         $this->padres $padres;
  115.         return $this;
  116.     }
  117.     public function getPpostcode(): ?string
  118.     {
  119.         return $this->ppostcode;
  120.     }
  121.     public function setPpostcode(?string $ppostcode): self
  122.     {
  123.         $this->ppostcode $ppostcode;
  124.         return $this;
  125.     }
  126.     public function getPwoonplaats(): ?string
  127.     {
  128.         return $this->pwoonplaats;
  129.     }
  130.     public function setPwoonplaats(?string $pwoonplaats): self
  131.     {
  132.         $this->pwoonplaats $pwoonplaats;
  133.         return $this;
  134.     }
  135.     /**
  136.      * @return Collection<int, Order>
  137.      */
  138.     public function getOrders(): Collection
  139.     {
  140.         return $this->orders;
  141.     }
  142.     public function addOrder(Order $order): self
  143.     {
  144.         if (!$this->orders->contains($order)) {
  145.             $this->orders->add($order);
  146.             $order->setUitvaartvereniging($this);
  147.         }
  148.         return $this;
  149.     }
  150.     public function removeOrder(Order $order): self
  151.     {
  152.         if ($this->orders->removeElement($order)) {
  153.             // set the owning side to null (unless already changed)
  154.             if ($order->getUitvaartvereniging() === $this) {
  155.                 $order->setUitvaartvereniging(null);
  156.             }
  157.         }
  158.         return $this;
  159.     }
  160.     /**
  161.      * @return Collection<int, Prospect>
  162.      */
  163.     public function getProspects(): Collection
  164.     {
  165.         return $this->prospects;
  166.     }
  167.     public function addProspect(Prospect $prospect): self
  168.     {
  169.         if (!$this->prospects->contains($prospect)) {
  170.             $this->prospects->add($prospect);
  171.             $prospect->setUitvaartvereniging($this);
  172.         }
  173.         return $this;
  174.     }
  175.     public function removeProspect(Prospect $prospect): self
  176.     {
  177.         if ($this->prospects->removeElement($prospect)) {
  178.             // set the owning side to null (unless already changed)
  179.             if ($prospect->getUitvaartvereniging() === $this) {
  180.                 $prospect->setUitvaartvereniging(null);
  181.             }
  182.         }
  183.         return $this;
  184.     }
  185.     /**
  186.      * @return Collection<int, Agent>
  187.      */
  188.     public function getAgents(): Collection
  189.     {
  190.         return $this->agents;
  191.     }
  192.     public function addAgent(Agent $agent): self
  193.     {
  194.         if (!$this->agents->contains($agent)) {
  195.             $this->agents->add($agent);
  196.             $agent->setUitvaartvereniging($this);
  197.         }
  198.         return $this;
  199.     }
  200.     public function removeAgent(Agent $agent): self
  201.     {
  202.         if ($this->agents->removeElement($agent)) {
  203.             // set the owning side to null (unless already changed)
  204.             if ($agent->getUitvaartvereniging() === $this) {
  205.                 $agent->setUitvaartvereniging(null);
  206.             }
  207.         }
  208.         return $this;
  209.     }
  210. }