| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | trait PropertyRecordsTrait |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @param $name |
||
| 16 | * @return array |
||
| 17 | */ |
||
| 18 | public function getStatusProperty($name): array |
||
| 19 | { |
||
| 20 | return $this->getSmartPropertyValues('Status', $name); |
||
|
|
|||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return null|GenericStatus[] |
||
| 25 | */ |
||
| 26 | public function getStatuses(): ?array |
||
| 27 | { |
||
| 28 | return $this->getSmartPropertyItems('Status'); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $name |
||
| 33 | * @return GenericStatus |
||
| 34 | * @throws Exception |
||
| 35 | */ |
||
| 36 | public function getStatus($name = null): GenericStatus |
||
| 37 | { |
||
| 38 | return $this->getSmartPropertyItem('Status', $name); |
||
| 39 | } |
||
| 40 | |||
| 41 | protected function registerSmartPropertyStatus() |
||
| 44 | } |
||
| 45 | } |