public function unserialize($value)
    {
        if (\is_array($value) && isset($value[self::SCALAR_TYPE])) {
            return $this->unserializeData($value);
        }

        $this->reset();

        return $this->unserializeData($this->serializationStrategy->unserialize($value));
    }
public function unserialize($value)
    {
        if (\is_array($value) && isset($value[self::SCALAR_TYPE])) {
            return $this->unserializeData($value);
        }

        $this->reset();

        return $this->unserializeData($this->serializationStrategy->unserialize($value));
    }
public function unserialize ( $ value ) { if ( \ is_array ( $ value ) && isset ( $ value [ self :: SCALAR_TYPE ] ) ) { return $ this -> unserializeData ( $ value ) ; } $ this -> reset ( ) ; return $ this -> unserializeData ( $ this -> serializationStrategy -> unserialize ( $ value ) ) ; }
Unserialize the value from string.

@param mixed $value

@return mixed
Unserialize the value from string .