<?php
namespace App\Entity;
use App\Repository\OfficeAdditionalLeaveRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: OfficeAdditionalLeaveRepository::class)]
class OfficeAdditionalLeave
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $title;
#[ORM\Column(type: 'string', length: 128, nullable: true)]
private $days;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $description;
#[ORM\Column(type: 'boolean', nullable: true)]
private $isActive;
#[ORM\ManyToOne(targetEntity: OfficeLeave::class, inversedBy: 'officeAdditionalLeaves')]
private $officeLeave;
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 getDays(): ?string
{
return $this->days;
}
public function setDays(?string $days): self
{
$this->days = $days;
return $this;
}
public function getDescription(): ?string
{
return $this->title;
}
public function setDescription(?string $title): self
{
$this->title = $title;
return $this;
}
public function getIsActive(): ?bool
{
return $this->isActive;
}
public function setIsActive(?bool $isActive): self
{
$this->isActive = $isActive;
return $this;
}
public function getOfficeLeave(): ?OfficeLeave
{
return $this->officeLeave;
}
public function setOfficeLeave(?OfficeLeave $officeLeave): self
{
$this->officeLeave = $officeLeave;
return $this;
}
}