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

Breadcrumb

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

function DocParser::Value

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

Value ::= PlainValue | FieldAssignment

Return value

mixed

Throws

AnnotationException

ReflectionException

2 calls to DocParser::Value()
DocParser::ArrayEntry in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php
ArrayEntry ::= Value | KeyValuePair KeyValuePair ::= Key ("=" | ":") PlainValue | Constant Key ::= string | integer | Constant
DocParser::Values in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php
Values ::= Array | Value {"," Value}* [","]

File

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

Class

DocParser
A parser for docblock annotations.

Namespace

Doctrine\Common\Annotations

Code

private function Value() {
    $peek = $this->lexer
        ->glimpse();
    if ($peek->type === DocLexer::T_EQUALS) {
        return $this->FieldAssignment();
    }
    return $this->PlainValue();
}
RSS feed
Powered by Drupal