![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mautic.corals.io/vendor/doctrine/orm/src/Query/AST/ |
<?php declare(strict_types=1); namespace Doctrine\ORM\Query\AST; /** * ArithmeticFactor ::= [("+" | "-")] ArithmeticPrimary * * @link www.doctrine-project.org */ class ArithmeticFactor extends Node { /** @var mixed */ public $arithmeticPrimary; /** * NULL represents no sign, TRUE means positive and FALSE means negative sign. * * @var bool|null */ public $sign; /** * @param mixed $arithmeticPrimary * @param bool|null $sign */ public function __construct($arithmeticPrimary, $sign = null) { $this->arithmeticPrimary = $arithmeticPrimary; $this->sign = $sign; } /** @return bool */ public function isPositiveSigned() { return $this->sign === true; } /** @return bool */ public function isNegativeSigned() { return $this->sign === false; } /** * {@inheritDoc} */ public function dispatch($sqlWalker) { return $sqlWalker->walkArithmeticFactor($this); } }