/** * @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])); }