Object/Element/CacheCollection.php
public function unserialize($serialized)
    {
        $tmp = unserialize($serialized);
        
        $this->id = $tmp['id'];
        
        $dateTime = new \DateTime();
        
        foreach ($tmp['elements'] as $element) {
            if ($element instanceof CacheElement){
                if ($element->getTimeOver() >= $dateTime) {
                    $this->elements[$element->getKey()] = $element;
                }
            }
        }
    }
public function unserialize($serialized)
    {
        $tmp = unserialize($serialized);
        
        $this->id = $tmp['id'];
        
        $dateTime = new \DateTime();
        
        foreach ($tmp['elements'] as $element) {
            if ($element instanceof CacheElement){
                if ($element->getTimeOver() >= $dateTime) {
                    $this->elements[$element->getKey()] = $element;
                }
            }
        }
    }
Unserialize

Unserialize an
instance

@see Serializable::unserialize()