@@ 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; |
|
@@ 148-152 (lines=5) @@ | ||
145 | ||
146 | // Variable $name defined in client. |
|
147 | foreach ($aliases as $name => $alias) { |
|
148 | if ($aliases[$name]['propertyType'] == 'private') { |
|
149 | $value = $object->{$aliases[$name]['methods']['getter']}(); |
|
150 | } else { |
|
151 | $value = $object->{$aliases[$name]['propertyName']}; |
|
152 | } |
|
153 | ||
154 | if (isset($value)) { |
|
155 | if (array_key_exists('aliases', $alias)) { |