<?php
namespace App\Entity;
use App\Repository\InvitationRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: InvitationRepository::class)]
class Invitation
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $invited_email = null;
#[ORM\Column(length: 255)]
private ?string $invitationHash = null;
#[ORM\Column]
private ?bool $inviteAccepted = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $inviteSendDate = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE,nullable: true)]
private ?\DateTimeInterface $inviteAcceptedDate = null;
public function getId(): ?int
{
return $this->id;
}
public function getInvitedEmail(): ?string
{
return $this->invited_email;
}
public function setInvitedEmail(string $invited_email): static
{
$this->invited_email = $invited_email;
return $this;
}
public function getInvitationHash(): ?string
{
return $this->invitationHash;
}
public function setInvitationHash(string $invitationHash): static
{
$this->invitationHash = $invitationHash;
return $this;
}
public function isInviteAccepted(): ?bool
{
return $this->inviteAccepted;
}
public function setInviteAccepted(bool $inviteAccepted): static
{
$this->inviteAccepted = $inviteAccepted;
return $this;
}
public function getInviteSendDate(): ?\DateTimeInterface
{
return $this->inviteSendDate;
}
public function setInviteSendDate(\DateTimeInterface $inviteSendDate): static
{
$this->inviteSendDate = $inviteSendDate;
return $this;
}
public function getInviteAcceptedDate(): ?\DateTimeInterface
{
return $this->inviteAcceptedDate;
}
public function setInviteAcceptedDate(\DateTimeInterface $inviteAcceptedDate): static
{
$this->inviteAcceptedDate = $inviteAcceptedDate;
return $this;
}
}