public function isDocumented()
{
if ($this->isDocumented === null) {
$this->isDocumented = $this->reflection->isTokenized() || $this->reflection->isInternal();
if ($this->isDocumented) {
$php = $this->configuration->isPhpCoreDocumented();
$internal = $this->configuration->isInternalDocumented();
if (!$php && $this->reflection->isInternal()) {
$this->isDocumented = false;
} elseif (!$internal && $this->reflection->hasAnnotation('internal')) {
$this->isDocumented = false;
} elseif ($this->reflection->hasAnnotation('ignore')) {
$this->isDocumented = false;
}
}
}
return $this->isDocumented;
}