Automattic\WooCommerce\Internal\ShopperLists

ShopperList::__constructprivateWC 1.0

Private constructor. Use the static factories to obtain concrete instances.

Method of the class: ShopperList{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->__construct( $user_id, $slug, $date_created_gmt, $items );
$user_id(int) (required)
Owning user ID.
$slug(string) (required)
List slug.
$date_created_gmt(string) (required)
MySQL DATETIME, GMT.
$items(array) (required)
.

ShopperList::__construct() code WC 10.9.1

private function __construct(
	int $user_id,
	string $slug,
	string $date_created_gmt,
	array $items
) {
	$this->user_id          = $user_id;
	$this->slug             = $slug;
	$this->date_created_gmt = $date_created_gmt;
	$this->items            = $items;
}