Automattic\WooCommerce\Internal\ShopperLists

ShopperList::__constructprivateWC 1.0

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

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

Хуков нет.

Возвращает

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

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

// private - только в коде основоного (родительского) класса
$result = $this->__construct( $user_id, $slug, $date_created_gmt, $items );
$user_id(int) (обязательный)
Owning user ID.
$slug(строка) (обязательный)
List slug.
$date_created_gmt(строка) (обязательный)
MySQL DATETIME, GMT.
$items(массив) (обязательный)
.

Код ShopperList::__construct() 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;
}