Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | trait PropertyRecordsTrait |
||
13 | { |
||
14 | /** |
||
15 | * Get property of a type by name |
||
16 | * |
||
17 | * @param string $name Type name |
||
18 | * |
||
19 | * @return array |
||
20 | */ |
||
21 | public function getTypeProperty($name) |
||
22 | { |
||
23 | return $this->getSmartPropertyValues('Type', $name); |
||
|
|||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Get all the types array |
||
28 | * |
||
29 | * @return GenericType[]|null |
||
30 | */ |
||
31 | public function getTypes() |
||
32 | { |
||
33 | return $this->getSmartPropertyItems('Type'); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param string $name |
||
38 | * @return GenericStatus |
||
39 | * @throws Exception |
||
40 | */ |
||
41 | public function getType($name = null) |
||
44 | } |
||
45 | |||
46 | protected function registerSmartPropertyType() |
||
49 | } |
||
50 | } |
||
51 |