コード例 #1
0
 /**
  * Parses the signature of an interface and finally returns a configured
  * interface instance.
  *
  * @return \PDepend\Source\AST\ASTInterface
  * @since  0.10.2
  */
 private function parseInterfaceSignature()
 {
     $this->consumeToken(Tokens::T_INTERFACE);
     $this->consumeComments();
     $qualifiedName = $this->createQualifiedTypeName($this->parseClassName());
     $interface = $this->builder->buildInterface($qualifiedName);
     $interface->setCompilationUnit($this->compilationUnit);
     $interface->setDocComment($this->docComment);
     $interface->setId($this->idBuilder->forClassOrInterface($interface));
     $interface->setUserDefined();
     return $this->parseOptionalExtendsList($interface);
 }