|
@@ 32-34 (lines=3) @@
|
| 29 |
|
*/ |
| 30 |
|
public function __call($method, $args) |
| 31 |
|
{ |
| 32 |
|
if (method_exists($this, '_' . $method)) { |
| 33 |
|
return call_user_func_array([$this, '_' . $method], $args); |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
return call_user_func_array([$this->date, $method], $args); |
| 37 |
|
} |
|
@@ 50-52 (lines=3) @@
|
| 47 |
|
{ |
| 48 |
|
$instance = new static; |
| 49 |
|
|
| 50 |
|
if (method_exists($instance, '_' . $method)) { |
| 51 |
|
return call_user_func_array([$instance, '_' . $method], $args); |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
return call_user_func_array([$instance, $method], $args); |
| 55 |
|
} |