<?php
namespace App\Entity;
use App\Repository\FlexiWorkArrangementRequestRepository;
use Symfony\Component\Serializer\Annotation\Groups;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: FlexiWorkArrangementRequestRepository::class)]
class FlexiWorkArrangementRequest
{
#[Groups(['LogService'])]
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 64)]
private $title;
#[Groups(['LogService'])]
#[ORM\Column(type: 'datetime')]
private $submittedAt;
#[Groups(['LogService'])]
#[ORM\Column(type: 'datetime', nullable: true)]
private $approvedAt;
#[Groups(['LogService'])]
#[ORM\Column(type: 'datetime', nullable: true)]
private $activeAt;
#[Groups(['LogService'])]
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'flexiWorkArrangementRequest')]
private $user;
#[Groups(['LogService'])]
#[ORM\ManyToOne(targetEntity: User::class)]
private $approvedBy;
#[Groups(['LogService'])]
#[ORM\Column(type: 'text', nullable: true)]
private $originalFile;
#[Groups(['LogService'])]
#[ORM\Column(type: 'text', nullable: true)]
private $signedFile;
public function getId(): ?int
{
return $this->id;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(string $title): self
{
$this->title = $title;
return $this;
}
public function getSubmittedAt(): ?\DateTimeInterface
{
return $this->submittedAt;
}
public function setSubmittedAt(\DateTimeInterface $submittedAt): self
{
$this->submittedAt = $submittedAt;
return $this;
}
public function getApprovedAt(): ?\DateTimeInterface
{
return $this->approvedAt;
}
public function setApprovedAt(?\DateTimeInterface $approvedAt): self
{
$this->approvedAt = $approvedAt;
return $this;
}
public function getActiveAt(): ?\DateTimeInterface
{
return $this->activeAt;
}
public function setActiveAt(?\DateTimeInterface $activeAt): self
{
$this->activeAt = $activeAt;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getApprovedBy(): ?User
{
return $this->approvedBy;
}
public function setApprovedBy(?User $approvedBy): self
{
$this->approvedBy = $approvedBy;
return $this;
}
public function getOriginalFile(): ?string
{
return $this->originalFile;
}
public function setOriginalFile(?string $originalFile): self
{
$this->originalFile = $originalFile;
return $this;
}
public function getSignedFile(): ?string
{
return $this->signedFile;
}
public function setSignedFile(?string $signedFile): self
{
$this->signedFile = $signedFile;
return $this;
}
}