@@ 122-124 (lines=3) @@ | ||
119 | ||
120 | switch ($this->type) { |
|
121 | case self::STRING: |
|
122 | if (!is_string($value)) { |
|
123 | throw new InvalidValueTypeForEntityPropertyException([gettype($value), $this->type]); |
|
124 | } |
|
125 | ||
126 | /** |
|
127 | * Check length |
|
@@ 179-181 (lines=3) @@ | ||
176 | break; |
|
177 | ||
178 | case self::UUID: |
|
179 | if (!is_string($value)) { |
|
180 | throw new InvalidValueTypeForEntityPropertyException([gettype($value), $this->type]); |
|
181 | } |
|
182 | ||
183 | /** |
|
184 | * Check UUID |
|
@@ 193-195 (lines=3) @@ | ||
190 | break; |
|
191 | ||
192 | case self::ENUM: |
|
193 | if (!is_string($value)) { |
|
194 | throw new InvalidValueTypeForEntityPropertyException([gettype($value), $this->type]); |
|
195 | } |
|
196 | ||
197 | /** |
|
198 | * Check values |