public function setMethod(PhpMethod $method) {
		$method->setParent($this);
		$this->methods->set($method->getName(), $method);

		return $this;
	}
public function setMethod(PhpMethod $method) {
		$method->setParent($this);
		$this->methods->set($method->getName(), $method);

		return $this;
	}
public function setMethod ( PhpMethod $ method ) { $ method -> setParent ( $ this ) ; $ this -> methods -> set ( $ method -> getName ( ) , $ method ) ; return $ this ; }
Adds a method

@param PhpMethod $method
@return $this
Adds a method