public function getOwnMethods()
{
if ($this->ownMethods === null) {
$this->ownMethods = [];
foreach ($this->reflection->getOwnMethods($this->getVisibilityLevel()) as $method) {
$apiMethod = $this->reflectionFactory->createFromReflection($method);
if (!$this->isDocumented() || $apiMethod->isDocumented()) {
$this->ownMethods[$method->getName()] = $apiMethod;
}
}
}
return $this->ownMethods;
}