src/mako/database/query/Query.php
public function in($column, $values, string $separator = 'AND', bool $not = false)
	{
		if($values instanceof Raw || $values instanceof Subquery)
		{
			$values = [$values];
		}
		elseif($values instanceof Closure)
		{
			$values = [new Subquery($values)];
		}

		$this->wheres[] =
		[
			'type'      => 'in',
			'column'    => $column,
			'values'    => $values,
			'separator' => $separator,
			'not'       => $not,
		];

		return $this;
	}
public function in($column, $values, string $separator = 'AND', bool $not = false)
	{
		if($values instanceof Raw || $values instanceof Subquery)
		{
			$values = [$values];
		}
		elseif($values instanceof Closure)
		{
			$values = [new Subquery($values)];
		}

		$this->wheres[] =
		[
			'type'      => 'in',
			'column'    => $column,
			'values'    => $values,
			'separator' => $separator,
			'not'       => $not,
		];

		return $this;
	}
public function in ( $ column , $ values , string $ separator = 'AND' , bool $ not = false ) { if ( $ values instanceof Raw || $ values instanceof Subquery ) { $ values = [ $ values ] ; } elseif ( $ values instanceof Closure ) { $ values = [ new Subquery ( $ values ) ] ; } $ this -> wheres [ ] = [ 'type' => 'in' , 'column' => $ column , 'values' => $ values , 'separator' => $ separator , 'not' => $ not , ] ; return $ this ; }
Adds a IN clause.

@param  mixed                                                                 $column    Column name
@param  array|\mako\database\query\Raw|\Closure|\mako\database\query\Subquery $values    Array of values or Subquery
@param  string                                                                $separator Clause separator
@param  bool                                                                  $not       Not in?
@return $this
Adds a IN clause .