public function setMethods(array $methods) {
		foreach ($this->methods as $method) {
			$method->setParent(null);
		}

		$this->methods->clear();
		foreach ($methods as $method) {
			$this->setMethod($method);
		}

		return $this;
	}
public function setMethods(array $methods) {
		foreach ($this->methods as $method) {
			$method->setParent(null);
		}

		$this->methods->clear();
		foreach ($methods as $method) {
			$this->setMethod($method);
		}

		return $this;
	}
public function setMethods ( array $ methods ) { foreach ( $ this -> methods as $ method ) { $ method -> setParent ( null ) ; } $ this -> methods -> clear ( ) ; foreach ( $ methods as $ method ) { $ this -> setMethod ( $ method ) ; } return $ this ; }
Sets a collection of methods

@param PhpMethod[] $methods
@return $this
Sets a collection of methods