| Total Complexity | 16 |
| Total Lines | 137 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Task |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | protected $id; |
||
| 18 | /** |
||
| 19 | * @var bool |
||
| 20 | */ |
||
| 21 | protected $active; |
||
| 22 | /** |
||
| 23 | * Task name is required. |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $name; |
||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $code; |
||
| 32 | /** |
||
| 33 | * @var float |
||
| 34 | */ |
||
| 35 | protected $hourlyRate; |
||
| 36 | /** |
||
| 37 | * @var bool |
||
| 38 | */ |
||
| 39 | protected $billable; |
||
| 40 | /** |
||
| 41 | * @var bool |
||
| 42 | */ |
||
| 43 | protected $common; |
||
| 44 | /** |
||
| 45 | * @var bool |
||
| 46 | */ |
||
| 47 | protected $unspecified; |
||
| 48 | |||
| 49 | public function getId(): int |
||
| 50 | { |
||
| 51 | return $this->id; |
||
| 52 | } |
||
| 53 | |||
| 54 | public function setId(int $id): self |
||
| 55 | { |
||
| 56 | $this->id = $id; |
||
| 57 | |||
| 58 | return $this; |
||
| 59 | } |
||
| 60 | |||
| 61 | public function getActive(): bool |
||
| 64 | } |
||
| 65 | |||
| 66 | public function setActive(bool $active): self |
||
| 67 | { |
||
| 68 | $this->active = $active; |
||
| 69 | |||
| 70 | return $this; |
||
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * Task name is required. |
||
| 75 | */ |
||
| 76 | public function getName(): string |
||
| 79 | } |
||
| 80 | |||
| 81 | /** |
||
| 82 | * Task name is required. |
||
| 83 | */ |
||
| 84 | public function setName(string $name): self |
||
| 85 | { |
||
| 86 | $this->name = $name; |
||
| 87 | |||
| 88 | return $this; |
||
| 89 | } |
||
| 90 | |||
| 91 | public function getCode(): string |
||
| 92 | { |
||
| 93 | return $this->code; |
||
| 94 | } |
||
| 95 | |||
| 96 | public function setCode(string $code): self |
||
| 97 | { |
||
| 98 | $this->code = $code; |
||
| 99 | |||
| 100 | return $this; |
||
| 101 | } |
||
| 102 | |||
| 103 | public function getHourlyRate(): float |
||
| 104 | { |
||
| 105 | return $this->hourlyRate; |
||
| 106 | } |
||
| 107 | |||
| 108 | public function setHourlyRate(float $hourlyRate): self |
||
| 109 | { |
||
| 110 | $this->hourlyRate = $hourlyRate; |
||
| 111 | |||
| 112 | return $this; |
||
| 113 | } |
||
| 114 | |||
| 115 | public function getBillable(): bool |
||
| 116 | { |
||
| 117 | return $this->billable; |
||
| 118 | } |
||
| 119 | |||
| 120 | public function setBillable(bool $billable): self |
||
| 121 | { |
||
| 122 | $this->billable = $billable; |
||
| 123 | |||
| 124 | return $this; |
||
| 125 | } |
||
| 126 | |||
| 127 | public function getCommon(): bool |
||
| 128 | { |
||
| 129 | return $this->common; |
||
| 130 | } |
||
| 131 | |||
| 132 | public function setCommon(bool $common): self |
||
| 133 | { |
||
| 134 | $this->common = $common; |
||
| 135 | |||
| 136 | return $this; |
||
| 137 | } |
||
| 138 | |||
| 139 | public function getUnspecified(): bool |
||
| 142 | } |
||
| 143 | |||
| 144 | public function setUnspecified(bool $unspecified): self |
||
| 149 | } |
||
| 150 | } |
||
| 151 |