| Total Complexity | 5 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | trait HasAcceptedFlagHelpers |
||
| 17 | { |
||
| 18 | public function initializeHasAcceptedFlagHelpers(): void |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * If entity is accepted. |
||
| 25 | * |
||
| 26 | * @return bool |
||
| 27 | */ |
||
| 28 | public function isAccepted(): bool |
||
| 29 | { |
||
| 30 | return $this->getAttributeValue('is_accepted'); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * If entity is rejected. |
||
| 35 | * |
||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | public function isRejected(): bool |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Mark entity as accepted. |
||
| 45 | * |
||
| 46 | * @return void |
||
| 47 | */ |
||
| 48 | public function accept(): void |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Mark entity as rejected. |
||
| 58 | * |
||
| 59 | * @return void |
||
| 60 | */ |
||
| 61 | public function reject(): void |
||
| 67 | } |
||
| 68 | } |
||
| 69 |