ObjectCache::deserialize()protectedWC 1.0

Deserializes a set of object data after having been retrieved from the cache. If a class overrides this method it should override 'serialize' as well.

{} It's a method of the class: ObjectCache{}

No Hooks.


Object|Array. Deserialized object, ready to be returned by 'get'.


// protected - for code of main (parent) or child class
$result = $this->deserialize( $serialized );
$serialized(array) (required)
Serialized object data as it was returned by 'validate_and_serialize'.

Code of ObjectCache::deserialize() WC 7.1.0

protected function deserialize( array $serialized ) {
	return $serialized['data'];