function DocParser::FieldAssignment
Same name in this branch
- 11.1.x vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php \Doctrine\Common\Annotations\DocParser::FieldAssignment()
FieldAssignment ::= FieldName "=" PlainValue FieldName ::= identifier
Return value
array
1 call to DocParser::FieldAssignment()
- DocParser::Value in core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ DocParser.php - Value ::= PlainValue | FieldAssignment
File
-
core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ DocParser.php, line 1078
Class
- DocParser
- A parser for docblock annotations.
Namespace
Drupal\Component\Annotation\DoctrineCode
private function FieldAssignment() {
$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;
}