@@ 1258-1267 (lines=10) @@ | ||
1255 | * $throws \BadMethodCallException |
|
1256 | * @throws \GitWrapper\GitException |
|
1257 | */ |
|
1258 | public function __call($method, $args) |
|
1259 | { |
|
1260 | if ('clone' == $method) { |
|
1261 | return call_user_func_array(array($this, 'cloneRepository'), $args); |
|
1262 | } else { |
|
1263 | $class = get_called_class(); |
|
1264 | $message = "Call to undefined method $class::$method()"; |
|
1265 | throw new \BadMethodCallException($message); |
|
1266 | } |
|
1267 | } |
|
1268 | ||
1269 | /** |
|
1270 | * Gets the output captured by the last run Git commnd(s). |
@@ 578-587 (lines=10) @@ | ||
575 | * $throws \BadMethodCallException |
|
576 | * @throws \GitWrapper\GitException |
|
577 | */ |
|
578 | public function __call($method, $args) |
|
579 | { |
|
580 | if ('clone' == $method) { |
|
581 | return call_user_func_array(array($this, 'cloneRepository'), $args); |
|
582 | } else { |
|
583 | $class = get_called_class(); |
|
584 | $message = "Call to undefined method $class::$method()"; |
|
585 | throw new \BadMethodCallException($message); |
|
586 | } |
|
587 | } |
|
588 | } |
|
589 |