18 lines
493 B
PHP
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();
|
||
|
}
|
||
|
}
|
||
|
}
|