* @package Mammut\DB\Sql */ class Between extends \Mammut\StrictObject implements iExprBool { use WithTarget; protected $minValue = null; protected $maxValue = null; public function __construct($target = null, $minValue = null, $maxValue = null) { if($target) $this->setTarget($target); if($minValue !== null) $this->setMinValue($minValue); if($maxValue !== null) $this->setMaxValue($maxValue); } public function setMinValue($minValue) { $this->minValue = $minValue; return $this; } public function getMinValue() { return $this->minValue; } public function setMaxValue($maxValue) { $this->maxValue = $maxValue; return $this; } public function getMaxValue() { return $this->maxValue; } }