/** * {@inheritdoc} */ public function getTraitMethods() { $methods = []; foreach ($this->originalReflection->getTraitMethods($this->classReflection->getVisibilityLevel()) as $method) { $apiMethod = $this->classReflection->getReflectionFactory()->createFromReflection($method); if (!$this->classReflection->isDocumented() || $apiMethod->isDocumented()) { $methods[$method->getName()] = $apiMethod; } } return $methods; }