function DocParser::MethodCall

Same name in other branches
  1. 9 core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::MethodCall()
  2. 10 core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::MethodCall()
  3. 11.x core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::MethodCall()

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

Return value

array

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

File

core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php, line 824

Class

DocParser
A parser for docblock annotations.

Namespace

Drupal\Component\Annotation\Doctrine

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.