public static function in(array $values = array()) { $in = []; foreach ($values as $key => $value) { $in[] = Lookup::isIntLike($key) ? "?{$key}" : ":{$key}:"; } return '(' . implode(', ', $in) . ')'; }
public function setLookup(Lookup $lookup = null) { if ($lookup) { $this->lookup = $lookup; } elseif (empty($this->lookup)) { $this->lookup = Lookup::getShared(); } }