@@ 27-29 (lines=3) @@ | ||
24 | $callType = substr($name, 0, $callTypeIndex); |
|
25 | $propertyName = substr($name, $callTypeIndex); |
|
26 | ||
27 | if (in_array($callType, array('get', 'is')) && count($arguments) == 0) { |
|
28 | return $this->{$callType}($propertyName); |
|
29 | } |
|
30 | ||
31 | if (in_array($callType, array('add', 'set')) && count($arguments) == 1) { |
|
32 | return $this->{$callType}($propertyName, $arguments[0]); |
|
@@ 31-33 (lines=3) @@ | ||
28 | return $this->{$callType}($propertyName); |
|
29 | } |
|
30 | ||
31 | if (in_array($callType, array('add', 'set')) && count($arguments) == 1) { |
|
32 | return $this->{$callType}($propertyName, $arguments[0]); |
|
33 | } |
|
34 | ||
35 | throw new \Exception("The method you tried to call doesn't exist"); |
|
36 | } |