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

18 lines
493 B
PHP
Raw Normal View History

2007-12-10 23:02:41 +03:00
<?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();
}
}
}