@@ 1223-1232 (lines=10) @@ | ||
1220 | * $throws \BadMethodCallException |
|
1221 | * @throws \GitWrapper\GitException |
|
1222 | */ |
|
1223 | public function __call($method, $args) |
|
1224 | { |
|
1225 | if ('clone' == $method) { |
|
1226 | return call_user_func_array(array($this, 'cloneRepository'), $args); |
|
1227 | } else { |
|
1228 | $class = get_called_class(); |
|
1229 | $message = "Call to undefined method $class::$method()"; |
|
1230 | throw new \BadMethodCallException($message); |
|
1231 | } |
|
1232 | } |
|
1233 | ||
1234 | /** |
|
1235 | * Gets the output captured by the last run Git commnd(s). |
@@ 545-554 (lines=10) @@ | ||
542 | * $throws \BadMethodCallException |
|
543 | * @throws \GitWrapper\GitException |
|
544 | */ |
|
545 | public function __call($method, $args) |
|
546 | { |
|
547 | if ('clone' == $method) { |
|
548 | return call_user_func_array(array($this, 'cloneRepository'), $args); |
|
549 | } else { |
|
550 | $class = get_called_class(); |
|
551 | $message = "Call to undefined method $class::$method()"; |
|
552 | throw new \BadMethodCallException($message); |
|
553 | } |
|
554 | } |
|
555 | } |
|
556 |