function DocParser::FieldAssignment
Same name in this branch
- 11.1.x core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::FieldAssignment()
FieldAssignment ::= FieldName "=" PlainValue FieldName ::= identifier
Throws
ReflectionException
1 call to DocParser::FieldAssignment()
- DocParser::Value in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ DocParser.php - Value ::= PlainValue | FieldAssignment
File
-
vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ DocParser.php, line 1301
Class
- DocParser
- A parser for docblock annotations.
Namespace
Doctrine\Common\AnnotationsCode
private function FieldAssignment() : stdClass {
$this->match(DocLexer::T_IDENTIFIER);
$fieldName = $this->lexer->token->value;
$this->match(DocLexer::T_EQUALS);
$item = new stdClass();
$item->name = $fieldName;
$item->value = $this->PlainValue();
return $item;
}