1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/draft/Doctrine/Query/Production/ConditionalPrimary.php
2007-12-10 20:02:41 +00:00

18 lines
493 B
PHP

<?php
/**
* ConditionalPrimary = SimpleConditionalExpression | "(" ConditionalExpression ")"
*/
class Doctrine_Query_Production_ConditionalPrimary extends Doctrine_Query_Production
{
public function execute(array $params = array())
{
if ($this->_isNextToken('(')) {
$this->_parser->match('(');
$this->ConditionalExpression();
$this->_parser->match(')');
} else {
$this->SimpleConditionalExpression();
}
}
}