| @@ 334-338 (lines=5) @@ | ||
| 331 | */ |
|
| 332 | public function __call($method, $parameters) |
|
| 333 | { |
|
| 334 | if (in_array($method, ['new', 'old'])) { |
|
| 335 | array_unshift($parameters, $method); |
|
| 336 | ||
| 337 | return call_user_func_array([$this, 'getFromRevision'], $parameters); |
|
| 338 | } |
|
| 339 | ||
| 340 | return call_user_func_array([$this->revision, $method], $parameters); |
|
| 341 | } |
|
| @@ 138-142 (lines=5) @@ | ||
| 135 | */ |
|
| 136 | public function __call($method, $parameters) |
|
| 137 | { |
|
| 138 | if (in_array($method, ['new', 'old'])) { |
|
| 139 | array_unshift($parameters, $method); |
|
| 140 | ||
| 141 | return call_user_func_array([$this, 'getFromArray'], $parameters); |
|
| 142 | } |
|
| 143 | ||
| 144 | if ($method == 'label') { |
|
| 145 | return reset($parameters); |
|