/** * 检查是否存在某个参数 * @param string|int $name 参数名或位置 * @return bool */ public function hasArgument($name) { return $this->definition->hasArgument($name); }