1
0
mirror of synced 2025-01-19 15:01:40 +03:00
doctrine2/draft/Doctrine/Query/Production/RangeVariableDeclaration.php

21 lines
639 B
PHP
Raw Normal View History

2007-12-10 20:02:41 +00:00
<?php
/**
2008-01-12 22:32:45 +00:00
* RangeVariableDeclaration = AbstractSchemaName ["AS"] IdentificationVariable
2007-12-10 20:02:41 +00:00
*/
class Doctrine_Query_Production_RangeVariableDeclaration extends Doctrine_Query_Production
{
public function execute(array $params = array())
{
2008-01-17 22:01:40 +00:00
$abstractSchemaName = $this->AbstractSchemaName();
2007-12-10 20:02:41 +00:00
if ($this->_isNextToken(Doctrine_Query_Token::T_AS)) {
$this->_parser->match(Doctrine_Query_Token::T_AS);
}
2008-01-12 22:32:45 +00:00
2008-01-17 22:01:40 +00:00
$identifier = $this->IdentificationVariable();
return array('abstractSchemaName' => $abstractSchemaName,
'identifier' => $identifier);
2007-12-10 20:02:41 +00:00
}
}