Total Complexity | 5 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 18.18% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
4 | trait StatusTrait |
||
5 | { |
||
6 | 1 | public function isActive(): bool |
|
7 | { |
||
8 | 1 | return $this->status === StatusInterface::STATUS_ACTIVE; |
|
9 | } |
||
10 | |||
11 | public function isDisabled(): bool |
||
12 | { |
||
13 | return $this->status === StatusInterface::STATUS_DISABLED; |
||
|
|||
14 | } |
||
15 | |||
16 | public function getStatusName(): string |
||
28 | } |
||
29 | } |
||
30 |