Automattic\WooCommerce\Caching

ObjectCache::__construct()publicWC 1.0

Creates a new instance of the class.

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

Хуков нет.

Возвращает

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

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

$ObjectCache = new ObjectCache();
$ObjectCache->__construct();

Код ObjectCache::__construct() WC 8.7.0

public function __construct() {
	$this->object_type = $this->get_object_type();
	if ( empty( $this->object_type ) ) {
		throw new CacheException( 'Class ' . get_class( $this ) . ' returns an empty value for get_object_type', $this );
	}
}