You are here

private function DocParser::MethodCall in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php \Doctrine\Common\Annotations\DocParser::MethodCall()

MethodCall ::= ["(" [Values] ")"]

Return value

array

1 call to DocParser::MethodCall()
DocParser::Annotation in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php
Annotation ::= "@" AnnotationName MethodCall AnnotationName ::= QualifiedName | SimpleName QualifiedName ::= NameSpacePart "\" {NameSpacePart "\"}* SimpleName NameSpacePart ::= identifier | null | false |…

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php, line 822

Class

DocParser
A parser for docblock annotations.

Namespace

Doctrine\Common\Annotations

Code

private function MethodCall() {
  $values = array();
  if (!$this->lexer
    ->isNextToken(DocLexer::T_OPEN_PARENTHESIS)) {
    return $values;
  }
  $this
    ->match(DocLexer::T_OPEN_PARENTHESIS);
  if (!$this->lexer
    ->isNextToken(DocLexer::T_CLOSE_PARENTHESIS)) {
    $values = $this
      ->Values();
  }
  $this
    ->match(DocLexer::T_CLOSE_PARENTHESIS);
  return $values;
}