| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | trait HasClosedAtHelpers |
||
| 19 | { |
||
| 20 | public function initializeHasClosedAtHelpers(): void |
||
| 23 | } |
||
| 24 | |||
| 25 | public function isClosed(): bool |
||
| 26 | { |
||
| 27 | return !is_null($this->getAttributeValue('closed_at')); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function isNotClosed(): bool |
||
| 31 | { |
||
| 32 | return !$this->isClosed(); |
||
| 33 | } |
||
| 34 | |||
| 35 | public function close(): void |
||
| 41 | } |
||
| 42 | |||
| 43 | public function open(): void |
||
| 49 | } |
||
| 50 | } |
||
| 51 |