protected isStaticMethod ( string $name ) : boolean | ||
$name | string | Method name |
리턴 | boolean | true if method is static, else false |
protected function isStaticMethod($name)
{
$interface = new ReflectionClass($this->interface);
if (!$interface->hasMethod($name)) {
return false;
}
return $interface->getMethod($name)->isStatic();
}