<?php
namespace App\Entity;
use App\Repository\TimesheetStatusRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=TimesheetStatusRepository::class)
*/
class TimesheetStatus
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=64)
*/
private $absence;
/**
* @ORM\Column(type="string", length=10, unique=true)
*/
private $absence_short_key;
/**
* @ORM\Column(type="boolean", nullable=true )
*/
private $cost_calculate;
/**
* @ORM\Column(type="json", nullable=true)
*/
private $absence_color = [];
/**
* @ORM\Column(type="json", nullable=true)
*/
private $absence_bg_color = [];
/**
* @ORM\Column(type="json", nullable=true)
*/
private $absence_br_color = [];
/**
* @ORM\Column(type="string", nullable=true)
*/
private $absence_icon;
/**
* @ORM\Column(type="string", length=64, nullable=true)
*/
private $absence_color_hex;
public function getId(): ?int
{
return $this->id;
}
public function getAbsence(): ?string
{
return $this->absence;
}
public function setAbsence(string $absence): self
{
$this->absence = $absence;
return $this;
}
public function getAbsenceShortKey(): ?string
{
return $this->absence_short_key;
}
public function setAbsenceShortKey(string $absence_short_key): self
{
$this->absence_short_key = $absence_short_key;
return $this;
}
public function getCostCalculate(): ?bool
{
return $this->cost_calculate;
}
public function setCostCalculate(bool $calculate): self
{
$this->cost_calculate = $calculate;
return $this;
}
public function getAbsenceColor(): ?array
{
return $this->absence_color;
}
public function setAbsenceColor(array $absence_color): self
{
$this->absence_color = $absence_color;
return $this;
}
public function getAbsenceBgColor(): ?array
{
return $this->absence_bg_color;
}
public function setAbsenceBgColor(array $absence_bg_color): self
{
$this->absence_bg_color = $absence_bg_color;
return $this;
}
public function getAbsenceBrColor(): ?array
{
return $this->absence_br_color;
}
public function setAbsenceBrColor(array $absence_br_color): self
{
$this->absence_br_color = $absence_br_color;
return $this;
}
public function getAbsenceIcon(): ?string
{
return $this->absence_icon;
}
public function setAbsenceIcon(string $absence_icon): self
{
$this->absence_icon = $absence_icon;
return $this;
}
public function getAbsenceColorHex(): ?string
{
return $this->absence_color_hex;
}
public function setAbsenceColorHex(?string $absence_color_hex): self
{
$this->absence_color_hex = $absence_color_hex;
return $this;
}
}