Automattic\WooCommerce\Blueprint\Steps
RunSql::__construct
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() RunSql:: construct code WC 9.9.5
public function __construct( string $sql, $name = 'schema.sql' ) { $this->sql = $sql; $this->name = $name; }