@@ -180,7 +180,7 @@ |
||
180 | 180 | } |
181 | 181 | |
182 | 182 | /** |
183 | - * @return bool|mixed |
|
183 | + * @return null|false |
|
184 | 184 | */ |
185 | 185 | public function update() |
186 | 186 | { |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use ByTIC\Models\SmartProperties\Properties\AbstractProperty\Traits\HasManagerTrait; |
6 | 6 | use ByTIC\Models\SmartProperties\Properties\AbstractProperty\Traits\HasNameTrait; |
7 | 7 | use Nip\Records\Record as Record; |
8 | -use ReflectionClass; |
|
9 | 8 | |
10 | 9 | /** |
11 | 10 | * Class Generic |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | protected $defaultValue = null; |
43 | 43 | |
44 | 44 | /** |
45 | - * @param $name |
|
45 | + * @param string $name |
|
46 | 46 | * |
47 | 47 | * @return Property |
48 | 48 | * @throws Exception |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | } |
108 | 108 | |
109 | 109 | /** |
110 | - * @return mixed |
|
110 | + * @return string |
|
111 | 111 | */ |
112 | 112 | public function getName() |
113 | 113 | { |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | } |
134 | 134 | |
135 | 135 | /** |
136 | - * @return mixed |
|
136 | + * @return string |
|
137 | 137 | */ |
138 | 138 | public function getField() |
139 | 139 | { |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | } |
158 | 158 | |
159 | 159 | /** |
160 | - * @param RecordManager|RecordsTrait $manager |
|
160 | + * @param \ByTIC\Models\SmartProperties\RecordsTraits\HasSmartProperties\RecordsTrait $manager |
|
161 | 161 | */ |
162 | 162 | public function setManager($manager) |
163 | 163 | { |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | } |
290 | 290 | |
291 | 291 | /** |
292 | - * @param null $type |
|
292 | + * @param string|null $type |
|
293 | 293 | * |
294 | 294 | * @return string |
295 | 295 | */ |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use ByTIC\Common\Records\Traits\HasSmartProperties\RecordsTrait; |
7 | 7 | use Exception; |
8 | 8 | use Nip\Records\RecordManager; |
9 | -use Nip_File_System as FileSystem; |
|
10 | 9 | |
11 | 10 | /** |
12 | 11 | * Class Definition |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | /** |
109 | 109 | * Generate the type name from file path |
110 | 110 | * @param string $path |
111 | - * @return mixed |
|
111 | + * @return string |
|
112 | 112 | */ |
113 | 113 | protected function generateTypeNameFromPath($path) |
114 | 114 | { |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | } |
163 | 163 | |
164 | 164 | /** |
165 | - * @param null $type |
|
165 | + * @param string|null $type |
|
166 | 166 | * @return string |
167 | 167 | */ |
168 | 168 | public function getTypeClass($type = null) |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | protected $smartProperties = []; |
25 | 25 | |
26 | 26 | /** |
27 | - * @param $name |
|
27 | + * @param string $name |
|
28 | 28 | * @return PropertyValue |
29 | 29 | */ |
30 | 30 | public function getSmartProperty($name) |
@@ -116,9 +116,9 @@ discard block |
||
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
119 | - * @param $name |
|
120 | - * @param $value |
|
121 | - * @return bool |
|
119 | + * @param string $name |
|
120 | + * @param boolean|string $value |
|
121 | + * @return null|false |
|
122 | 122 | * @throws \Exception |
123 | 123 | */ |
124 | 124 | public function updateSmartProperty($name, $value) |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | - * @param $type |
|
43 | + * @param string|null $type |
|
44 | 44 | * @return mixed |
45 | 45 | * @throws \Nip\Logger\Exception |
46 | 46 | */ |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
97 | - * @param $typeObject |
|
97 | + * @param GenericType $typeObject |
|
98 | 98 | * @return RecordTrait |
99 | 99 | */ |
100 | 100 | public function setTypeFromObject($typeObject) |