1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/draft/Doctrine/Query/Production/RangeVariableDeclaration.php
2008-01-17 22:01:40 +00:00

21 lines
639 B
PHP

<?php
/**
* RangeVariableDeclaration = AbstractSchemaName ["AS"] IdentificationVariable
*/
class Doctrine_Query_Production_RangeVariableDeclaration extends Doctrine_Query_Production
{
public function execute(array $params = array())
{
$abstractSchemaName = $this->AbstractSchemaName();
if ($this->_isNextToken(Doctrine_Query_Token::T_AS)) {
$this->_parser->match(Doctrine_Query_Token::T_AS);
}
$identifier = $this->IdentificationVariable();
return array('abstractSchemaName' => $abstractSchemaName,
'identifier' => $identifier);
}
}