Automattic\WooCommerce\Blueprint\Steps

RunSql::__constructpublicWC 1.0

Constructor.

Method of the class: RunSql{}

No Hooks.

Returns

null. Nothing (null).

Usage

$RunSql = new RunSql();
$RunSql->__construct( $sql, $name );
$sql(string) (required)
Sql code to run.
$name(string)
Name of the sql file.
Default: 'schema.sql'

RunSql::__construct() code WC 9.9.5

public function __construct( string $sql, $name = 'schema.sql' ) {
	$this->sql  = $sql;
	$this->name = $name;
}