src/Entity/TimesheetStatus.php line 12

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