Automattic\WooCommerce\Admin\API\Reports
GenericQuery::__construct
Create a new query.
Method of the class: GenericQuery{}
No Hooks.
Returns
null. Nothing (null).
Usage
$GenericQuery = new GenericQuery(); $GenericQuery->__construct( $args, $name );
- $args(array) (required)
- Criteria to query on in a format similar to WP_Query.
- $name(string)
- Query name.
Default:null
GenericQuery::__construct() GenericQuery:: construct code WC 11.0.0
public function __construct( $args, $name = null ) {
$this->name = $name ?? $this->name;
return parent::__construct( $args ); // phpcs:ignore Universal.CodeAnalysis.ConstructorDestructorReturn.ReturnValueFound
}