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