You are here

private function DocParser::MethodCall in Plug 7

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

Return value

array

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

File

lib/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;
}