src/Entity/TimesheetStatus.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TimesheetStatusRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=TimesheetStatusRepository::class)
  7.  */
  8. class TimesheetStatus
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=64)
  18.      */
  19.     private $absence;
  20.     /**
  21.      * @ORM\Column(type="string", length=10, unique=true)
  22.      */
  23.     private $absence_short_key;
  24.     /**
  25.      * @ORM\Column(type="boolean", nullable=true )
  26.      */
  27.     private $cost_calculate;
  28.     /**
  29.      * @ORM\Column(type="json", nullable=true)
  30.      */
  31.     private $absence_color = [];
  32.     /**
  33.      * @ORM\Column(type="json", nullable=true)
  34.      */
  35.     private $absence_bg_color = [];
  36.     /**
  37.      * @ORM\Column(type="json", nullable=true)
  38.      */
  39.     private $absence_br_color = [];
  40.     /**
  41.      * @ORM\Column(type="string", nullable=true)
  42.      */
  43.     private $absence_icon;
  44.     /**
  45.      * @ORM\Column(type="string", length=64, nullable=true)
  46.      */
  47.     private $absence_color_hex;
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getAbsence(): ?string
  53.     {
  54.         return $this->absence;
  55.     }
  56.     public function setAbsence(string $absence): self
  57.     {
  58.         $this->absence $absence;
  59.         return $this;
  60.     }
  61.     public function getAbsenceShortKey(): ?string
  62.     {
  63.         return $this->absence_short_key;
  64.     }
  65.     public function setAbsenceShortKey(string $absence_short_key): self
  66.     {
  67.         $this->absence_short_key $absence_short_key;
  68.         return $this;
  69.     }
  70.     public function getCostCalculate(): ?bool
  71.     {
  72.         return $this->cost_calculate;
  73.     }
  74.     public function setCostCalculate(bool $calculate): self
  75.     {
  76.         $this->cost_calculate $calculate;
  77.         return $this;
  78.     }
  79.     public function getAbsenceColor(): ?array
  80.     {
  81.         return $this->absence_color;
  82.     }
  83.     public function setAbsenceColor(array $absence_color): self
  84.     {
  85.         $this->absence_color $absence_color;
  86.         return $this;
  87.     }
  88.     public function getAbsenceBgColor(): ?array
  89.     {
  90.         return $this->absence_bg_color;
  91.     }
  92.     public function setAbsenceBgColor(array $absence_bg_color): self
  93.     {
  94.         $this->absence_bg_color $absence_bg_color;
  95.         return $this;
  96.     }
  97.     public function getAbsenceBrColor(): ?array
  98.     {
  99.         return $this->absence_br_color;
  100.     }
  101.     public function setAbsenceBrColor(array $absence_br_color): self
  102.     {
  103.         $this->absence_br_color $absence_br_color;
  104.         return $this;
  105.     }
  106.     public function getAbsenceIcon(): ?string
  107.     {
  108.         return $this->absence_icon;
  109.     }
  110.     public function setAbsenceIcon(string $absence_icon): self
  111.     {
  112.         $this->absence_icon $absence_icon;
  113.         return $this;
  114.     }
  115.     public function getAbsenceColorHex(): ?string
  116.     {
  117.         return $this->absence_color_hex;
  118.     }
  119.     public function setAbsenceColorHex(?string $absence_color_hex): self
  120.     {
  121.         $this->absence_color_hex $absence_color_hex;
  122.         return $this;
  123.     }
  124. }