| @@ 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 | ||
| @@ 221-224 (lines=4) @@ | ||
| 218 | } |
|
| 219 | ||
| 220 | foreach ($changes as $k => $v) { |
|
| 221 | if (!$this->type->hasProperty($k)) { |
|
| 222 | $name = $this->type->getName(); |
|
| 223 | throw new Exception("Unknown property $name.$k"); |
|
| 224 | } |
|
| 225 | } |
|
| 226 | ||
| 227 | if (count($changes)) { |
|