| 1 | <?php |
||
| 21 | trait StatusAwareEntityTrait |
||
| 22 | { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The status entity. |
||
| 26 | * |
||
| 27 | * @var StatusInterface |
||
| 28 | */ |
||
| 29 | private $status; |
||
| 30 | |||
| 31 | public function getStatus() |
||
| 39 | |||
| 40 | public function setStatus($status) |
||
| 50 | |||
| 51 | public function hasStatus($status) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Create a status from the status name. |
||
| 58 | * |
||
| 59 | * @param string|null $status |
||
| 60 | * |
||
| 61 | * @return StatusInterface |
||
| 62 | * @throws \RuntimeException if the property $statusEntity is not defined. |
||
| 63 | */ |
||
| 64 | private function createStatusFromName($status = null) |
||
| 72 | } |