@@ 120-124 (lines=5) @@ | ||
117 | } |
|
118 | } |
|
119 | ||
120 | if ($aliases[$name]['propertyType'] == 'private') { |
|
121 | $object->{$aliases[$name]['methods']['setter']}($value); |
|
122 | } else { |
|
123 | $object->{$aliases[$name]['propertyName']} = $value; |
|
124 | } |
|
125 | } |
|
126 | ||
127 | return $object; |
|
@@ 152-156 (lines=5) @@ | ||
149 | ||
150 | // Variable $name defined in client. |
|
151 | foreach ($aliases as $name => $alias) { |
|
152 | if ($aliases[$name]['propertyType'] == 'private') { |
|
153 | $value = $object->{$aliases[$name]['methods']['getter']}(); |
|
154 | } else { |
|
155 | $value = $object->{$aliases[$name]['propertyName']}; |
|
156 | } |
|
157 | ||
158 | if (isset($value)) { |
|
159 | if (array_key_exists('aliases', $alias)) { |