Automattic\WooCommerce\Caching

ObjectCache::__construct()publicWC 1.0

Creates a new instance of the class.

Method of the class: ObjectCache{}

No Hooks.

Return

null. Nothing (null).

Usage

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

ObjectCache::__construct() code WC 9.4.2

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 );
	}
}