@@ 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) { |
|
@@ 267-270 (lines=4) @@ | ||
264 | } |
|
265 | ||
266 | foreach ($changes as $k => $v) { |
|
267 | if (!$this->type->hasProperty($k)) { |
|
268 | $name = $this->type->getName(); |
|
269 | throw new Exception("Unknown property $name.$k"); |
|
270 | } |
|
271 | } |
|
272 | ||
273 | if (count($changes)) { |