src/Entity/CRM/LeaveRequestAllocation.php line 9

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Repository\CRM\LeaveRequestAllocationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassLeaveRequestAllocationRepository::class)]
  6. class LeaveRequestAllocation
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'leaveRequestAllocations')]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private ?WorkTime $workTime null;
  15.     #[ORM\ManyToOne(inversedBy'leaveRequestAllocations')]
  16.     #[ORM\JoinColumn(nullablefalse)]
  17.     private ?LeaveRequest $leaveRequest null;
  18.     #[ORM\Column]
  19.     private ?int $minutesUsed null;
  20.     #[ORM\Column(length20)]
  21.     private ?string $usageType null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getWorkTime(): ?WorkTime
  27.     {
  28.         return $this->workTime;
  29.     }
  30.     public function setWorkTime(?WorkTime $workTime): static
  31.     {
  32.         $this->workTime $workTime;
  33.         return $this;
  34.     }
  35.     public function getLeaveRequest(): ?LeaveRequest
  36.     {
  37.         return $this->leaveRequest;
  38.     }
  39.     public function setLeaveRequest(?LeaveRequest $leaveRequest): static
  40.     {
  41.         $this->leaveRequest $leaveRequest;
  42.         return $this;
  43.     }
  44.     public function getMinutesUsed(): ?int
  45.     {
  46.         return $this->minutesUsed;
  47.     }
  48.     public function setMinutesUsed(int $minutesUsed): static
  49.     {
  50.         $this->minutesUsed $minutesUsed;
  51.         return $this;
  52.     }
  53.     public function getUsageType(): ?string
  54.     {
  55.         return $this->usageType;
  56.     }
  57.     public function setUsageType(string $usageType): static
  58.     {
  59.         $this->usageType $usageType;
  60.         return $this;
  61.     }
  62. }