* @package Mammut\DB\Sql */ class In extends \Mammut\StrictObject implements iExprBool { use WithTarget; protected $valueSet; public function __construct($target = null, $valueSet = null) { if($target) $this->setTarget($target); if($valueSet) $this->setValueSet($valueSet); } public function setValueSet($valueSet) { if(!(is_array($valueSet) || $valueSet instanceof Select)) throw new \BadMethodCallException('$valueSet must be either an array or a Select object, ' . gettype($valueSet) . ' given'); $this->valueSet = $valueSet; return $this; } public function getValueSet() { return $this->valueSet; } }