src/Entity/Prospect.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProspectRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassProspectRepository::class)]
  9. #[ORM\Table(name'`prospect`')]
  10. class Prospect
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(nullabletrue)]
  17.     private ?int $prospectnummer null;
  18.     #[ORM\ManyToOne(inversedBy'prospects')]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private ?vestiging $vestiging null;
  21.     #[ORM\ManyToOne]
  22.     private ?ordersoort $ordersoort null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $overledene_naam null;
  25.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  26.     private ?\DateTimeInterface $geb_datum null;
  27.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  28.     private ?\DateTimeInterface $overl_datum null;
  29.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  30.     private ?\DateTimeInterface $begraaf_datum null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $grafnummer null;
  33.     #[ORM\ManyToOne(inversedBy'prospects')]
  34.     private ?familie $familie null;
  35.     #[ORM\ManyToOne(inversedBy'prospects')]
  36.     private ?uitvaartvereniging $uitvaartvereniging null;
  37.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  38.     private ?string $opmerkingen null;
  39.     #[ORM\ManyToOne]
  40.     private ?Brief $brief null;
  41.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  42.     private ?\DateTimeInterface $brief_streefdatum null;
  43.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  44.     private ?\DateTimeInterface $brief_verzenddatum null;
  45.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  46.     private ?\DateTimeInterface $created_at null;
  47.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  48.     private ?\DateTimeInterface $updated_at null;
  49.     #[ORM\ManyToOne]
  50.     private ?begraafplaats $begraafplaats null;
  51.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  52.     private ?\DateTimeInterface $datum_fotoboek_afgegeven null;
  53.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  54.     private ?\DateTimeInterface $datum_fotoboek_retour null;
  55.     #[ORM\OneToMany(mappedBy'prospect'targetEntityReminder::class)]
  56.     private Collection $reminders;
  57.     public function __construct()
  58.     {
  59.         $this->reminders = new ArrayCollection();
  60.     }
  61.     public function __toString()
  62.     {
  63.         return($this->id.', '.$this->overledene_naam);
  64.     }
  65.     public function getId(): ?int
  66.     {
  67.         return $this->id;
  68.     }
  69.     public function getProspectnummer(): ?int
  70.     {
  71.         return $this->prospectnummer;
  72.     }
  73.     public function setProspectnummer(?int $prospectnummer): self
  74.     {
  75.         $this->prospectnummer $prospectnummer;
  76.         return $this;
  77.     }
  78.     public function getVestiging(): ?vestiging
  79.     {
  80.         return $this->vestiging;
  81.     }
  82.     public function setVestiging(?vestiging $vestiging): self
  83.     {
  84.         $this->vestiging $vestiging;
  85.         return $this;
  86.     }
  87.     public function getOrdersoort(): ?ordersoort
  88.     {
  89.         return $this->ordersoort;
  90.     }
  91.     public function setOrdersoort(?ordersoort $ordersoort): self
  92.     {
  93.         $this->ordersoort $ordersoort;
  94.         return $this;
  95.     }
  96.     public function getOverledeneNaam(): ?string
  97.     {
  98.         return $this->overledene_naam;
  99.     }
  100.     public function setOverledeneNaam(?string $overledene_naam): self
  101.     {
  102.         $this->overledene_naam $overledene_naam;
  103.         return $this;
  104.     }
  105.     public function getGebDatum(): ?\DateTimeInterface
  106.     {
  107.         return $this->geb_datum;
  108.     }
  109.     public function setGebDatum(?\DateTimeInterface $geb_datum): self
  110.     {
  111.         $this->geb_datum $geb_datum;
  112.         return $this;
  113.     }
  114.     public function getOverlDatum(): ?\DateTimeInterface
  115.     {
  116.         return $this->overl_datum;
  117.     }
  118.     public function setOverlDatum(?\DateTimeInterface $overl_datum): self
  119.     {
  120.         $this->overl_datum $overl_datum;
  121.         return $this;
  122.     }
  123.     public function getBegraafDatum(): ?\DateTimeInterface
  124.     {
  125.         return $this->begraaf_datum;
  126.     }
  127.     public function setBegraafDatum(?\DateTimeInterface $begraaf_datum): self
  128.     {
  129.         $this->begraaf_datum $begraaf_datum;
  130.         return $this;
  131.     }
  132.     public function getGrafnummer(): ?string
  133.     {
  134.         return $this->grafnummer;
  135.     }
  136.     public function setGrafnummer(?string $grafnummer): self
  137.     {
  138.         $this->grafnummer $grafnummer;
  139.         return $this;
  140.     }
  141.     public function getFamilie(): ?familie
  142.     {
  143.         return $this->familie;
  144.     }
  145.     public function setFamilie(?familie $familie): self
  146.     {
  147.         $this->familie $familie;
  148.         return $this;
  149.     }
  150.     public function getUitvaartvereniging(): ?uitvaartvereniging
  151.     {
  152.         return $this->uitvaartvereniging;
  153.     }
  154.     public function setuitvaartvereniging(?uitvaartvereniging $uitvaartvereniging): self
  155.     {
  156.         $this->uitvaartvereniging $uitvaartvereniging;
  157.         return $this;
  158.     }
  159.     public function getOpmerkingen(): ?string
  160.     {
  161.         return $this->opmerkingen;
  162.     }
  163.     public function setOpmerkingen(?string $opmerkingen): self
  164.     {
  165.         $this->opmerkingen $opmerkingen;
  166.         return $this;
  167.     }
  168.     public function getBrief(): ?brief
  169.     {
  170.         return $this->brief;
  171.     }
  172.     public function setBrief(?brief $brief): self
  173.     {
  174.         $this->brief $brief;
  175.         return $this;
  176.     }
  177.     public function getBriefStreefdatum(): ?\DateTimeInterface
  178.     {
  179.         return $this->brief_streefdatum;
  180.     }
  181.     public function setBriefStreefdatum(?\DateTimeInterface $brief_streefdatum): self
  182.     {
  183.         $this->brief_streefdatum $brief_streefdatum;
  184.         return $this;
  185.     }
  186.     public function getBriefVerzenddatum(): ?\DateTimeInterface
  187.     {
  188.         return $this->brief_verzenddatum;
  189.     }
  190.     public function setBriefVerzenddatum(?\DateTimeInterface $brief_verzenddatum): self
  191.     {
  192.         $this->brief_verzenddatum $brief_verzenddatum;
  193.         return $this;
  194.     }
  195.     public function getCreatedAt(): ?\DateTimeInterface
  196.     {
  197.         return $this->created_at;
  198.     }
  199.     public function setCreatedAt(?\DateTimeInterface $created_at): self
  200.     {
  201.         $this->created_at $created_at;
  202.         return $this;
  203.     }
  204.     public function getUpdatedAt(): ?\DateTimeInterface
  205.     {
  206.         return $this->updated_at;
  207.     }
  208.     public function setUpdatedAt(?\DateTimeInterface $updated_at): self
  209.     {
  210.         $this->updated_at $updated_at;
  211.         return $this;
  212.     }
  213.     public function getBegraafplaats(): ?begraafplaats
  214.     {
  215.         return $this->begraafplaats;
  216.     }
  217.     public function setBegraafplaats(?begraafplaats $begraafplaats): self
  218.     {
  219.         $this->begraafplaats $begraafplaats;
  220.         return $this;
  221.     }
  222.     public function getDatumFotoboekAfgegeven(): ?\DateTimeInterface
  223.     {
  224.         return $this->datum_fotoboek_afgegeven;
  225.     }
  226.     public function setDatumFotoboekAfgegeven(?\DateTimeInterface $datum_fotoboek_afgegeven): self
  227.     {
  228.         $this->datum_fotoboek_afgegeven $datum_fotoboek_afgegeven;
  229.         return $this;
  230.     }
  231.     public function getDatumFotoboekRetour(): ?\DateTimeInterface
  232.     {
  233.         return $this->datum_fotoboek_retour;
  234.     }
  235.     public function setDatumFotoboekRetour(?\DateTimeInterface $datum_fotoboek_retour): self
  236.     {
  237.         $this->datum_fotoboek_retour $datum_fotoboek_retour;
  238.         return $this;
  239.     }
  240.     /**
  241.      * @return Collection<int, Reminder>
  242.      */
  243.     public function getReminders(): Collection
  244.     {
  245.         return $this->reminders;
  246.     }
  247.     public function addReminder(Reminder $reminder): static
  248.     {
  249.         if (!$this->reminders->contains($reminder)) {
  250.             $this->reminders->add($reminder);
  251.             $reminder->setProspect($this);
  252.         }
  253.         return $this;
  254.     }
  255.     public function removeReminder(Reminder $reminder): static
  256.     {
  257.         if ($this->reminders->removeElement($reminder)) {
  258.             // set the owning side to null (unless already changed)
  259.             if ($reminder->getProspect() === $this) {
  260.                 $reminder->setProspect(null);
  261.             }
  262.         }
  263.         return $this;
  264.     }
  265. }