| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | trait HasArchivedFlagHelpers |
||
| 17 | { |
||
| 18 | public function initializeHasArchivedFlagHelpers(): void |
||
| 21 | } |
||
| 22 | |||
| 23 | public function isArchived(): bool |
||
| 24 | { |
||
| 25 | return $this->getAttributeValue('is_archived'); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function isNotArchived(): bool |
||
| 29 | { |
||
| 30 | return !$this->isArchived(); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function archive(): void |
||
| 39 | } |
||
| 40 | |||
| 41 | public function undoArchive(): void |
||
| 49 |