Automattic\WooCommerce\Blueprint\Steps

RunSql::__constructpublicWC 1.0

Constructor.

Метод класса: RunSql{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$RunSql = new RunSql();
$RunSql->__construct( $sql, $name );
$sql(строка) (обязательный)
Sql code to run.
$name(строка)
Name of the sql file.
По умолчанию: 'schema.sql'

Код RunSql::__construct() WC 10.0.2

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