public function removeMethod($nameOrMethod) {
		if ($nameOrMethod instanceof PhpMethod) {
			$nameOrMethod = $nameOrMethod->getName();
		}

		if (!$this->methods->has($nameOrMethod)) {
			throw new \InvalidArgumentException(sprintf('The method "%s" does not exist.', $nameOrMethod));
		}
		$m = $this->methods->get($nameOrMethod);
		$m->setParent(null);
		$this->methods->remove($nameOrMethod);

		return $this;
	}
public function removeMethod($nameOrMethod) {
		if ($nameOrMethod instanceof PhpMethod) {
			$nameOrMethod = $nameOrMethod->getName();
		}

		if (!$this->methods->has($nameOrMethod)) {
			throw new \InvalidArgumentException(sprintf('The method "%s" does not exist.', $nameOrMethod));
		}
		$m = $this->methods->get($nameOrMethod);
		$m->setParent(null);
		$this->methods->remove($nameOrMethod);

		return $this;
	}
public function removeMethod ( $ nameOrMethod ) { if ( $ nameOrMethod instanceof PhpMethod ) { $ nameOrMethod = $ nameOrMethod -> getName ( ) ; } if ( ! $ this -> methods -> has ( $ nameOrMethod ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The method "%s" does not exist.' , $ nameOrMethod ) ) ; } $ m = $ this -> methods -> get ( $ nameOrMethod ) ; $ m -> setParent ( null ) ; $ this -> methods -> remove ( $ nameOrMethod ) ; return $ this ; }
Removes a method

@param string|PhpMethod $nameOrMethod method name or Method instance
@throws \InvalidArgumentException if the method cannot be found
@return $this
Removes a method