src/Neevo/Statement.php
public static function createInsert(Connection $connection, $table, $values){
		if(!($values instanceof Traversable || (is_array($values) && !empty($values))))
			throw new InvalidArgumentException('Argument 3 must be a non-empty array or Traversable.');

		$obj = new self($connection);
		$obj->type = Manager::STMT_INSERT;
		$obj->source = $table;
		$obj->values = $values instanceof Traversable ? iterator_to_array($values) : $values;
		return $obj;
	}
public static function createInsert(Connection $connection, $table, $values){
		if(!($values instanceof Traversable || (is_array($values) && !empty($values))))
			throw new InvalidArgumentException('Argument 3 must be a non-empty array or Traversable.');

		$obj = new self($connection);
		$obj->type = Manager::STMT_INSERT;
		$obj->source = $table;
		$obj->values = $values instanceof Traversable ? iterator_to_array($values) : $values;
		return $obj;
	}
public static function createInsert ( Connection $ connection , $ table , $ values ) { if ( ! ( $ values instanceof Traversable || ( is_array ( $ values ) && ! empty ( $ values ) ) ) ) throw new InvalidArgumentException ( 'Argument 3 must be a non-empty array or Traversable.' ) ; $ obj = new self ( $ connection ) ; $ obj -> type = Manager :: STMT_INSERT ; $ obj -> source = $ table ; $ obj -> values = $ values instanceof Traversable ? iterator_to_array ( $ values ) : $ values ; return $ obj ; }
Creates INSERT statement.
@param Connection $connection
@param string $table
@param array|Traversable $values
@return Statement fluent interface
Creates INSERT statement .