hasMethod() public method

Does the class have the specified method method?
public hasMethod ( string $methodName ) : boolean
$methodName string
return boolean
 /**
  * {@inheritDoc}
  */
 public function hasMethod($name)
 {
     return $this->betterReflectionClass->hasMethod($name);
 }