return ClassMethod::
class;
} /**
* @param ClassMethod $node
*
* @return array<array-key, RuleError|string>
*/
public function processNode(Node
$node, Scope
$scope): array
{ // no class method
if (!
$scope->
isInClass()) { return [];
} // already marked as internal
if ($this->
hasInternalComment($node)) { return [];
} $class =
$scope->
getClassReflection();
// complete class is marked as internal
if ($class !== null &&
$class->
isInternal()) {