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

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

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