<?php
namespace App\Entity;
use App\Repository\ReminderRepository;
use App\Entity\Prospect;
use App\Entity\Groep;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ReminderRepository::class)]
class Reminder
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::DATE_MUTABLE)]
private ?\DateTimeInterface $datum = null;
#[ORM\ManyToOne(inversedBy: 'reminders')]
private ?user $user = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $opmerking = null;
#[ORM\Column(length: 255)]
private ?string $titel = null;
#[ORM\Column]
private ?bool $isActive = null;
#[ORM\ManyToOne(inversedBy: 'reminders')]
private ?order $orderid = null;
#[ORM\ManyToOne(inversedBy: 'reminders')]
private ?prospect $prospect = null;
#[ORM\ManyToOne(inversedBy: 'reminders')]
private ?vestiging $vestiging = null;
#[ORM\ManyToOne(inversedBy: 'reminders')]
private ?groep $groep = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $ingevoerd_datum = null;
#[ORM\ManyToOne(inversedBy: 'created_reminders')]
private ?user $ingevoerd_door = null;
public function __toString()
{
return($this->getTitel());
}
public function getId(): ?int
{
return $this->id;
}
public function getDatum(): ?\DateTimeInterface
{
return $this->datum;
}
public function setDatum(?\DateTimeInterface $datum): self
{
$this->datum = $datum;
return $this;
}
public function getUser(): ?user
{
return $this->user;
}
public function setUser(?user $user): self
{
$this->user = $user;
return $this;
}
public function getOpmerking(): ?string
{
return $this->opmerking;
}
public function setOpmerking(?string $opmerking): self
{
$this->opmerking = $opmerking;
return $this;
}
public function getTitel(): ?string
{
return $this->titel;
}
public function setTitel(string $titel): self
{
$this->titel = $titel;
return $this;
}
public function isIsActive(): ?bool
{
return $this->isActive;
}
public function setIsActive(bool $isActive): static
{
$this->isActive = $isActive;
return $this;
}
public function getOrderid(): ?order
{
return $this->orderid;
}
public function setOrderid(?order $orderid): static
{
$this->orderid = $orderid;
return $this;
}
public function getProspect(): ?prospect
{
return $this->prospect;
}
public function setProspect(?prospect $prospect): static
{
$this->prospect = $prospect;
return $this;
}
public function getVestiging(): ?vestiging
{
return $this->vestiging;
}
public function setVestiging(?vestiging $vestiging): static
{
$this->vestiging = $vestiging;
return $this;
}
public function getGroep(): ?groep
{
return $this->groep;
}
public function setGroep(?groep $groep): static
{
$this->groep = $groep;
return $this;
}
public function getIngevoerdDatum(): ?\DateTimeInterface
{
return $this->ingevoerd_datum;
}
public function setIngevoerdDatum(?\DateTimeInterface $ingevoerd_datum): static
{
$this->ingevoerd_datum = $ingevoerd_datum;
return $this;
}
public function getIngevoerdDoor(): ?user
{
return $this->ingevoerd_door;
}
public function setIngevoerdDoor(?user $ingevoerd_door): static
{
$this->ingevoerd_door = $ingevoerd_door;
return $this;
}
}