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';
}
}