PDepend\Source\Language\PHP\AbstractPHPParser::parseInterfaceList PHP Method

parseInterfaceList() protected method

This method parses a list of interface names as used in the extends part of a interface declaration or in the implements part of a class declaration.
protected parseInterfaceList ( PDepend\Source\AST\AbstractASTClassOrInterface $abstractType ) : void
$abstractType PDepend\Source\AST\AbstractASTClassOrInterface
return void
    protected function parseInterfaceList(AbstractASTClassOrInterface $abstractType)
    {
        while (true) {
            $this->tokenStack->push();
            $abstractType->addInterfaceReference($this->setNodePositionsAndReturn($this->builder->buildAstClassOrInterfaceReference($this->parseQualifiedName())));
            $this->consumeComments();
            $tokenType = $this->tokenizer->peek();
            if ($tokenType === Tokens::T_CURLY_BRACE_OPEN) {
                break;
            }
            $this->consumeToken(Tokens::T_COMMA);
        }
    }
AbstractPHPParser