2009-01-20 20:07:07 +03:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* To change this template, choose Tools | Templates
|
|
|
|
* and open the template in the editor.
|
|
|
|
*/
|
|
|
|
|
2009-01-22 22:38:10 +03:00
|
|
|
namespace Doctrine\ORM\Query\AST;
|
|
|
|
|
2009-01-20 20:07:07 +03:00
|
|
|
/**
|
|
|
|
* ArithmeticTerm ::= ArithmeticFactor {("*" | "/") ArithmeticFactor}*
|
|
|
|
*
|
|
|
|
* @author robo
|
|
|
|
*/
|
2009-01-22 22:38:10 +03:00
|
|
|
class ArithmeticTerm extends Node
|
2009-01-20 20:07:07 +03:00
|
|
|
{
|
|
|
|
private $_factors;
|
|
|
|
|
|
|
|
public function __construct(array $arithmeticFactors)
|
|
|
|
{
|
|
|
|
$this->_factors = $arithmeticFactors;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getArithmeticFactors()
|
|
|
|
{
|
|
|
|
return $this->_factors;
|
|
|
|
}
|
2009-03-23 20:39:33 +03:00
|
|
|
|
|
|
|
public function dispatch($sqlWalker)
|
|
|
|
{
|
|
|
|
return $sqlWalker->walkArithmeticTerm($this);
|
|
|
|
}
|
2009-02-20 08:46:20 +03:00
|
|
|
}
|