| 1 | <?php |
||
| 18 | trait ModelWithState |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var boolean Enabled |
||
| 23 | */ |
||
| 24 | public $enabled; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @inheritdoc |
||
| 28 | */ |
||
| 29 | public function isEnabled() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @inheritdoc |
||
| 36 | */ |
||
| 37 | public function isDisabled() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritdoc |
||
| 44 | */ |
||
| 45 | public function toEnabled() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @inheritdoc |
||
| 53 | */ |
||
| 54 | public function toDisabled() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @inheritdoc |
||
| 62 | */ |
||
| 63 | public function stateRules() |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @inheritdoc |
||
| 81 | */ |
||
| 82 | public function stateAttributeLabel() |
||
| 89 | } |
||
| 90 |