You are here

private function DocParser::FieldAssignment in Plug 7

FieldAssignment ::= FieldName "=" PlainValue FieldName ::= identifier

Return value

array

1 call to DocParser::FieldAssignment()
DocParser::Value in lib/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php
Value ::= PlainValue | FieldAssignment

File

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

Class

DocParser
A parser for docblock annotations.

Namespace

Doctrine\Common\Annotations

Code

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