public __construct ( ReflectionMethod $method, string $name ) | ||
$method | ReflectionMethod | The method. |
$name | string | The name. |
public function __construct(ReflectionMethod $method, $name)
{
$this->method = $method;
$this->name = $name;
$this->isCallable = !$this->method->isAbstract();
$this->isStatic = $this->method->isStatic();
if ($this->method->isPublic()) {
$this->accessLevel = 'public';
} else {
$this->accessLevel = 'protected';
}
}