コード例 #1
0
ファイル: Bridge.php プロジェクト: eggbe/client-bridge
 /**
  * @param string $method
  * @param array $Args
  * @return Bridge
  * @throws \Exception
  */
 public function __call($method, array $Args = [])
 {
     if (!preg_match('/^with(' . Reglib::VAR . ')$/', $method, $Matches)) {
         throw new \Exception('Call to undefined method "' . get_class($this) . '::' . $method . '()"!');
     }
     return call_user_func_array([$this, 'with'], Arr::unshift($Args, $Matches[1]));
 }