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