public function RuntimeReflectionService::hasPublicMethod

Check if the class have a public method with the given name.

Parameters

mixed $class:

mixed $method:

Return value

bool

Overrides ReflectionService::hasPublicMethod

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php, line 97

Class

RuntimeReflectionService
PHP Runtime Reflection Service

Namespace

Doctrine\Common\Persistence\Mapping

Code

public function hasPublicMethod($class, $method) {
  return method_exists($class, $method) && is_callable(array(
    $class,
    $method,
  ));
}