public function addParameter(ParameterReflection $parameter) { $this->parameters[$parameter->getName()] = $parameter; $parameter->setMethod($this); }