@@ 58-61 (lines=4) @@ | ||
55 | } |
|
56 | } |
|
57 | } |
|
58 | if (!$this->type->hasProperty($k)) { |
|
59 | $name = $this->type->getName(); |
|
60 | throw new Exception("Unknown property $name.$k"); |
|
61 | } |
|
62 | $data[$k] = $this->type->encodeProperty($k, $v); |
|
63 | } |
|
64 | foreach ($this->type->getRequiredProperties() as $property) { |
|
@@ 228-231 (lines=4) @@ | ||
225 | } |
|
226 | ||
227 | foreach ($changes as $k => $v) { |
|
228 | if (!$this->type->hasProperty($k)) { |
|
229 | $name = $this->type->getName(); |
|
230 | throw new Exception("Unknown property $name.$k"); |
|
231 | } |
|
232 | } |
|
233 | ||
234 | if (count($changes)) { |