Automattic\WooCommerce\Caching
ObjectCache::__construct
Creates a new instance of the class.
Метод класса: ObjectCache{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ObjectCache = new ObjectCache(); $ObjectCache->__construct();
Код ObjectCache::__construct() ObjectCache:: construct WC 10.5.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 );
}
}