41 lines
847 B
PHP
41 lines
847 B
PHP
|
<?php
|
||
|
/*
|
||
|
* To change this template, choose Tools | Templates
|
||
|
* and open the template in the editor.
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* ArithmeticFactor ::= [("+" | "-")] ArithmeticPrimary
|
||
|
*
|
||
|
* @author robo
|
||
|
*/
|
||
|
class Doctrine_ORM_Query_AST_ArithmeticFactor extends Doctrine_ORM_Query_AST
|
||
|
{
|
||
|
private $_arithmeticPrimary;
|
||
|
private $_pSigned;
|
||
|
private $_nSigned;
|
||
|
|
||
|
public function __construct($arithmeticPrimary, $pSigned = false, $nSigned = false)
|
||
|
{
|
||
|
$this->_arithmeticPrimary = $arithmeticPrimary;
|
||
|
$this->_pSigned = $pSigned;
|
||
|
$this->_nSigned = $nSigned;
|
||
|
}
|
||
|
|
||
|
public function getArithmeticPrimary()
|
||
|
{
|
||
|
return $this->_arithmeticPrimary;
|
||
|
}
|
||
|
|
||
|
public function isPositiveSigned()
|
||
|
{
|
||
|
return $this->_pSigned;
|
||
|
}
|
||
|
|
||
|
public function isNegativeSigned()
|
||
|
{
|
||
|
return $this->_nSigned;
|
||
|
}
|
||
|
}
|
||
|
|