public function addParameter(Parameter $parameter) { $parameter->setMethod($this); $this->parameters->set($parameter->getName(), $parameter); }