Reconstructs the phone instance from a string representation.

@param string $serialized
333562
public function unserialize($serialized)
    {
        $this->lib = PhoneNumberUtil::getInstance();
        $this->number = $serialized;
        $this->country = $this->lib->getRegionCodeForNumber($this->getPhoneNumberInstance());
    }
1135308
public function unserialize($serialized) : void
    {
        $doc = DOMDocumentFactory::fromString(unserialize($serialized));
        $this->xml = $doc->documentElement;
        $this->setLocalName($this->xml->localName);
        $this->setNamespaceURI($this->xml->namespaceURI);
    }
109127
public function unserialize($serialized)
    {
        list(
            $this->name,
            $this->params,
            $this->stopPropagation
            ) = \unserialize($serialized, ['allowed_classes' => false]);
    }
234774
public function unserialize($serialized)
    {
        list(
            $this->id,
            $this->username,
            $this->password,
            $this->salt,
            $this->roles
            ) = unserialize($serialized, []);
    }
25121
public function unserialize($serialized)
    {
        foreach (unserialize($serialized) as $property => $value) {
            $this->{$property} = $value;
        }
    }
181883
public function unserialize($serialized)
    {
        $unserialized = unserialize($serialized);
        $this->__construct($unserialized['tokens']);
        $this->seek($unserialized['index']);
    }
311537
public function unserialize($serialized)
    {
        list($this->messages, $this->isValid) = json_decode($serialized, true);
    }
633157
public function unserialize( $serialized )
   {

      $data = \unserialize( $serialized );

      $this->_hours   = $data[ 'hours'   ] ?? $this->_hours;
      $this->_minutes = $data[ 'minutes' ] ?? $this->_minutes;
      $this->_seconds = $data[ 'seconds' ] ?? $this->_seconds;

   }
489095
public function unserialize($serialized): void
    {
        $cachedData = json_decode($serialized, true);

        if (json_last_error() !== JSON_ERROR_NONE) {
            throw new InvalidCachedResponse();
        }

        $this->protocolVersion     = $cachedData['protocolVersion'];
        $this->numericalStatusCode = $cachedData['numericalStatusCode'];
        $this->textualStatusCode   = $cachedData['textualStatusCode'];
        $this->headers             = $cachedData['headers'];
        $this->body                = $cachedData['body'];
    }
624107
private function getDeserializationDefinition(string $serialized): array
    {
        if (\trim($serialized) === '') {
            throw new EventSerializationException('Malformed JSON serialized event: empty string');
        }

        $definition = \json_decode($serialized, true, 512, static::JSON_DECODE_OPTIONS);

        // @codeCoverageIgnoreStart
        if ($definition === null || \json_last_error() !== \JSON_ERROR_NONE) {
            throw new EventSerializationException(\sprintf(
                'Event deserialization failed due to error %s: %s',
                \json_last_error(),
                \lcfirst(\json_last_error_msg())
            ));
        }
        // @codeCoverageIgnoreEnd

        return $definition;
    }
773837
public function unserialize($serialized)
    {
        list(
            $this->ffmpegBinary,
            $this->movieFile,
            $this->output,
            $this->frameNumber,
            $this->provider
        ) = unserialize($serialized);
    }
1132131
public function unserialize($serialized){

		list($this->_host, $this->_port) = explode(':', unserialize($serialized));

		$this->_Memcache = new \Memcache();

		if(!Memcache::connect($this->_Memcache, $this->_host, $this->_port)){

			throw new CacheException('Failed to connect to Memcache');
		}
	}
984635
public function unserialize($serialized)
    {
        Validate::isString($serialized, 'serialized');

        $json = json_decode($serialized);
        if ($json && !is_array($json)) {
            return get_object_vars($json);
        } else {
            return $json;
        }
    }
801872
public function unserialize($serialized)
    {
        $data = unserialize($serialized);

        $this->active =  $data['active'];
        $this->defaultValue =  $data['defaultValue'];
        $this->label=  $data['label'];
        $this->validFor=  $data['validFor'];
        $this->value=  $data['value'];
    }
1300340
public static function decode($input, $serialized = false)
    {
        // use Base64 encoding to workaround issues with invalid
        // or null characters in serialized string (#1489142)
        if ($serialized) {
            // Keep backward compatybility where base64 wasn't used
            if (strpos(substr($input, 0, 16), ':') !== false) {
                return self::decode(@unserialize($input));
            }

            return @unserialize(base64_decode($input));
        }

        if (is_object($input)) {
            foreach (get_object_vars($input) as $idx => $value) {
                $input->$idx = self::decode($value);
            }
            return $input;
        }
        else if (is_array($input)) {
            foreach ($input as $idx => $value) {
                $input[$idx] = self::decode($value);
            }
            return $input;
        }

        return utf8_decode($input);
    }
780971
public function unserialize($serialized)
    {
        $data = unserialize($serialized);

        // add a few extra elements in the array to ensure that we have enough keys when unserializing
        // older data which does not include all properties.
        $data = array_merge($data, array_fill(0, 4, null));

        list(
            $this->providerID,
            $this->authenticationServiceName,
            $this->sessionIndex,
            $this->nameID,
            $this->nameIDFormat,
            $this->createdOn
            ) = $data;
    }
700598
public function unserialize($serialized)
    {
        $data          = unserialize($serialized);
        $this->results = [];

        /** @noinspection ForeachSourceInspection */
        foreach ($data['results'] as $item) {
            $this->results[] = $item;
        }

        /** @noinspection ForeachSourceInspection */
        foreach ($data['adapters'] as $item) {
            $this->adapters->insert($item['data'], $item['priority']);
        }
    }