public function addTypeHintUsage(TypeHintUsage $typeHintUsage) { $this->typeHintUsages[] = $typeHintUsage; }
/** * {@inheritdoc} */ public function enterNode(Node $node) { if ($node instanceof Node\Param && $node->type instanceof Node\Name) { $typeHintUsage = new TypeHintUsage($node->type->toString(), $node->getLine()); $this->phpFileInfo->addTypeHintUsage($typeHintUsage); } }