| @@ 93-99 (lines=7) @@ | ||
| 90 | $propertyName = $ourPropertyName; |
|
| 91 | } |
|
| 92 | ||
| 93 | if (property_exists($this, $propertyName)) { |
|
| 94 | if (array_key_exists($propertyName, $this->mappingClasses)) { |
|
| 95 | $this->{$propertyName} = new $this->mappingClasses[$propertyName]($data->current()); |
|
| 96 | } else { |
|
| 97 | $this->{$propertyName} = (string)$data->current(); |
|
| 98 | } |
|
| 99 | } |
|
| 100 | } |
|
| 101 | ||
| 102 | return $this; |
|
| @@ 134-138 (lines=5) @@ | ||
| 131 | } |
|
| 132 | ||
| 133 | if (property_exists($this, $propertyName)) { |
|
| 134 | if (isset($this->mappingClasses[$propertyName])) { |
|
| 135 | $this->{$propertyName} = new $this->mappingClasses[$propertyName]($val); |
|
| 136 | } else { |
|
| 137 | $this->{$propertyName} = $val; |
|
| 138 | } |
|
| 139 | } |
|
| 140 | } |
|
| 141 | ||
| @@ 23-29 (lines=7) @@ | ||
| 20 | $propertyName = $ourPropertyName; |
|
| 21 | } |
|
| 22 | ||
| 23 | if (property_exists($this, $propertyName)) { |
|
| 24 | if (array_key_exists($propertyName, $this->mappingClasses)) { |
|
| 25 | $this->{$propertyName} = new $this->mappingClasses[$propertyName]($data); |
|
| 26 | } else { |
|
| 27 | $this->{$propertyName} = (string)$data; |
|
| 28 | } |
|
| 29 | } |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||