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

		return $this->methods->has($nameOrMethod);
	}
public function hasMethod($nameOrMethod): bool {
		if ($nameOrMethod instanceof PhpMethod) {
			$nameOrMethod = $nameOrMethod->getName();
		}

		return $this->methods->has($nameOrMethod);
	}
public function hasMethod ( $ nameOrMethod ) : bool { if ( $ nameOrMethod instanceof PhpMethod ) { $ nameOrMethod = $ nameOrMethod -> getName ( ) ; } return $ this -> methods -> has ( $ nameOrMethod ) ; }
Checks whether a method exists or not

@param string|PhpMethod $nameOrMethod method name or Method instance
@return bool `true` if it exists and `false` if not
Checks whether a method exists or not