| @@ 915-928 (lines=14) @@ | ||
| 912 | * |
|
| 913 | * @return string |
|
| 914 | */ |
|
| 915 | public function IdentificationVariable() |
|
| 916 | { |
|
| 917 | $this->match(Lexer::T_IDENTIFIER); |
|
| 918 | ||
| 919 | $identVariable = $this->lexer->token['value']; |
|
| 920 | ||
| 921 | $this->deferredIdentificationVariables[] = [ |
|
| 922 | 'expression' => $identVariable, |
|
| 923 | 'nestingLevel' => $this->nestingLevel, |
|
| 924 | 'token' => $this->lexer->token, |
|
| 925 | ]; |
|
| 926 | ||
| 927 | return $identVariable; |
|
| 928 | } |
|
| 929 | ||
| 930 | /** |
|
| 931 | * AliasIdentificationVariable = identifier |
|
| @@ 1013-1027 (lines=15) @@ | ||
| 1010 | * |
|
| 1011 | * @return string |
|
| 1012 | */ |
|
| 1013 | public function ResultVariable() |
|
| 1014 | { |
|
| 1015 | $this->match(Lexer::T_IDENTIFIER); |
|
| 1016 | ||
| 1017 | $resultVariable = $this->lexer->token['value']; |
|
| 1018 | ||
| 1019 | // Defer ResultVariable validation |
|
| 1020 | $this->deferredResultVariables[] = [ |
|
| 1021 | 'expression' => $resultVariable, |
|
| 1022 | 'nestingLevel' => $this->nestingLevel, |
|
| 1023 | 'token' => $this->lexer->token, |
|
| 1024 | ]; |
|
| 1025 | ||
| 1026 | return $resultVariable; |
|
| 1027 | } |
|
| 1028 | ||
| 1029 | /** |
|
| 1030 | * JoinAssociationPathExpression ::= IdentificationVariable "." (CollectionValuedAssociationField | SingleValuedAssociationField) |
|