|
@@ 74-85 (lines=12) @@
|
| 71 |
|
/** |
| 72 |
|
* @return PropertyReflectionInterface[] |
| 73 |
|
*/ |
| 74 |
|
public function getTraitProperties(): array |
| 75 |
|
{ |
| 76 |
|
$properties = []; |
| 77 |
|
$traitProperties = $this->originalReflection->getTraitProperties($this->classReflection->getVisibilityLevel()); |
| 78 |
|
foreach ($traitProperties as $property) { |
| 79 |
|
$apiProperty = $this->classReflection->getReflectionFactory()->createFromReflection($property); |
| 80 |
|
if (! $this->classReflection->isDocumented() || $apiProperty->isDocumented()) { |
| 81 |
|
$properties[$property->getName()] = $apiProperty; |
| 82 |
|
} |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
return $properties; |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
/** |
|
@@ 91-101 (lines=11) @@
|
| 88 |
|
/** |
| 89 |
|
* @return MethodReflectionInterface[] |
| 90 |
|
*/ |
| 91 |
|
public function getTraitMethods(): array |
| 92 |
|
{ |
| 93 |
|
$methods = []; |
| 94 |
|
foreach ($this->originalReflection->getTraitMethods($this->classReflection->getVisibilityLevel()) as $method) { |
| 95 |
|
$apiMethod = $this->classReflection->getReflectionFactory()->createFromReflection($method); |
| 96 |
|
if (! $this->classReflection->isDocumented() || $apiMethod->isDocumented()) { |
| 97 |
|
$methods[$method->getName()] = $apiMethod; |
| 98 |
|
} |
| 99 |
|
} |
| 100 |
|
|
| 101 |
|
return $methods; |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
/** |