| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | trait TExpire |
||
| 12 | { |
||
| 13 | protected bool $showNotice = false; |
||
| 14 | protected int $expireTime = 0; |
||
| 15 | |||
| 16 | 1 | public function setExpireNotice(bool $expiry): void |
|
| 17 | { |
||
| 18 | 1 | $this->showNotice = $expiry; |
|
| 19 | 1 | } |
|
| 20 | |||
| 21 | 1 | public function willExpire(): bool |
|
| 24 | } |
||
| 25 | |||
| 26 | 1 | public function getExpireTime(): int |
|
| 27 | { |
||
| 28 | 1 | return $this->expireTime; |
|
| 29 | } |
||
| 30 | |||
| 31 | 1 | public function updateExpireTime(int $expireTime): void |
|
| 34 | 1 | } |
|
| 35 | } |
||
| 36 |