1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/draft/Doctrine/Query/Production/BetweenExpression.php

19 lines
557 B
PHP
Raw Normal View History

2007-12-10 23:02:41 +03:00
<?php
/**
* BetweenExpression = ["NOT"] "BETWEEN" Expression "AND" Expression
*/
class Doctrine_Query_Production_BetweenExpression extends Doctrine_Query_Production
{
public function execute(array $params = array())
{
if ($this->_isNextToken(Doctrine_Query_Token::T_NOT)) {
$this->_parser->match(Doctrine_Query_Token::T_NOT);
}
$this->_parser->match(Doctrine_Query_Token::T_BETWEEN);
$this->Expression();
$this->_parser->match(Doctrine_Query_Token::T_AND);
$this->Expression();
}
}