$this->endline =
$method->
getEndLine();
$this->internal =
$method->
isInternal();
$this->docstring =
$method->
getDocComment() ?: null;
$this->return_reference =
$method->
returnsReference();
foreach ($method->
getParameters() as $param) { $this->parameters
[] =
new ParameterValue($param);
} $this->returntype =
$method->
getReturnType();
if ($this->returntype
) { $this->returntype = Utils::
getTypeString($this->returntype
);
} if ($method instanceof ReflectionMethod
) { $this->static =
$method->
isStatic();
$this->operator =
$this->static ? Value::OPERATOR_STATIC : Value::OPERATOR_OBJECT;
$this->abstract =
$method->
isAbstract();
$this->final =
$method->
isFinal();
$this->owner_class =
$method->
getDeclaringClass()->name;
$this->access = Value::ACCESS_PUBLIC;
if ($method->
isProtected()) { $this->access = Value::ACCESS_PROTECTED;
}