Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DocParser.php

function DocParser::MethodCall

Same name in this branch
  1. 11.1.x core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::MethodCall()

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

@psalm-return Arguments

Throws

AnnotationException

ReflectionException

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 1036

Class

DocParser
A parser for docblock annotations.

Namespace

Doctrine\Common\Annotations

Code

private function MethodCall() : array {
    $values = [];
    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;
}
RSS feed
Powered by Drupal