public function assignByRef($key, &$val = null) { if (is_array($key)) { foreach ($key as $k => &$v) { $this->args[$k] = $v; } } else { $this->args[$key] = $val; } return $this; }