/** * @param Node\Stmt\Interface_ $node */ protected function parseInterfaceNode(Node\Stmt\Interface_ $node) { if (!isset($node->namespacedName)) { return; } $this->currentStructuralElement = $node; $extendedInterfaces = []; /** @var Node\Name $extends */ foreach ($node->extends as $extends) { $extendedInterfaces[] = $extends->toString(); } $this->structuralElements[$node->namespacedName->toString()] = ['name' => $node->name, 'type' => 'interface', 'startLine' => $node->getLine(), 'parents' => $extendedInterfaces, 'docComment' => $node->getDocComment() ? $node->getDocComment()->getText() : null, 'traits' => [], 'methods' => [], 'properties' => [], 'constants' => []]; }