Construct from the string representation.

@param  string  $serialized
@return void
197165
public function unserialize($serialized): void
    {
        $this->definitionMap = unserialize($serialized)
            ->mapWithKeys(function (array $node, string $key): array {
                return [$key => AST::fromArray($node)];
            });
    }
535861
public function unserialize($serialized)
    {
        foreach (unserialize($serialized) as $item => $value) {
            $this->$item = $value;
        }
    }
671137
public function unserialize($serialized)
    {
        $unserialized = unserialize($serialized);
        if ($this->_snapshot !== false) {
            $this->_snapshot = $unserialized;
        }

        foreach ((array)$unserialized as $field => $value) {
            $this->$field = $value;
        }
    }
1120588
public function unserialize($serialized)
    {
        list(
            $this->gdImageData,
            $this->pts,
            $this->width,
            $this->height
        ) = unserialize($serialized);
    }
250615
public function unserialize($serialized)
	{
		list(	$this->deviceToken,
				$this->certificate,
				$this->expiresAt,
				$this->alert,
				$this->badge,
				$this->sound,
				$this->payload,
				$this->contentAvailable) = unserialize($serialized);
	}
1128094
public function unserialize($serialized)
    {
        parent::unserialize($serialized);
        foreach ( $this->getMethods() as $item ) {
            $item->setBelongsTo($this);
        }
//        foreach ( $this->getConstants() as $item ) {
//            $item->setBelongsTo($this);
//        }
        foreach ( $this->getProperties() as $item ) {
            $item->setBelongsTo($this);
        }
        foreach ( $this->getTags() as $item ) {
            $item->setBelongsTo($this);
        }
//        return;
//        foreach ( [ $this->getMethods(), $this->getProperties(), $this->getConstants(), $this->getTags() ] as $collection ) {
//            /** @var Collection|AbstractStructure[] $collection */
//            foreach ( $collection as $item ) {
//                $item->setBelongsTo($this);
//            }
//        }
    }
363591
public function unserialize($serialized): void
    {
        $data = unserialize($serialized, ['allowed_classes' => false]);

        $this->doUnserialize($data);
    }
864415
public function unserialize($serialized)
    {
        if (!self::isValid($serialized)) {
            throw new \InvalidArgumentException(sprintf('Invalid id: %s', $serialized));
        }
        $this->id = $serialized;
    }
979709
public function unserialize($serialized)
    {
        $entries = explode(':', $serialized, 2);
        $this->bin = null;
        $this->key = null;
        if (count($entries) === 2) {
            list($bin_length, $bin_and_key) = $entries;
            $bin_length = intval($bin_length);
            $this->bin = substr($bin_and_key, 0, $bin_length);
            $this->key = substr($bin_and_key, $bin_length + 1);
        }

        // @TODO: Remove check against false for PHP 7+
        if (false === $this->key || '' === $this->key) {
            $this->key = null;
        }
    }
311537
public function unserialize($serialized)
    {
        list($this->messages, $this->isValid) = json_decode($serialized, true);
    }
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'];
    }
367910
public function unserialize($serialized)
    {
        $payload = unserialize($serialized);

        // We will extract the variables into the current scope so that as the Closure
        // is built it will inherit the scope it had before it was serialized which
        // will emulate the Closures existing in that scope instead of right now.
        extract($payload['variables']);

        eval('$this->closure = '.$payload['code'].';');

        $this->reflection = new ReflectionFunction($this->closure);
    }
109127
public function unserialize($serialized)
    {
        list(
            $this->name,
            $this->params,
            $this->stopPropagation
            ) = \unserialize($serialized, ['allowed_classes' => false]);
    }
545031
public function unserialize($serialized) {
            $s = unserialize($serialized);
            $this->defaults = $s[0];
            $this->custom = $s[1];
            $this->merge();
        }
95122
public function unserialize($serialized)
    {
        $data = unserialize($serialized);

        // Calling __construct here is required to avoid PHP warnings. See
        // PHP bug #65151. DateTime objects that are created through
        // unserialization are not properly initialized until __construct() is
        // called.
        $this->__construct('@' . $data[0]);

        // DateTime constructor with timestamp is always UTC so set time zone
        $this->setTimezone(new DateTimeZone($data[1]));
    }
676119
private static function decideEncode($object, &$serialized)
    {
        switch ($type = gettype($object)) {
            case 'integer':
                $serialized .= "i{$object}e";
                break;

            case 'string':
                self::encodeString($object, $serialized);
                break;

            case 'array':
                $function = self::getArraySerializer($object);
                self::$function($object, $serialized);
                break;

            case 'boolean':
                $serialized .= $object === true ? 'i1e' : 'i0e';
                break;

            default:
                throw new EncodingException("Invalid type for encoding: $type", $object);
        }
    }
697293
public function unserialize($serialized)
    {
        $data = unserialize($serialized);
        if (!is_array($data)) {
            throw new \UnexpectedValueException('Unserialized data is not an array');
        }

        // TODO: check existence
        $this->message      = CustomAmqpMessage::fromProperties($data['message']);
        $this->tag          = (string) $data['tag'];
        $this->exchange     = (string) $data['exchange'];
        $this->queue        = (string) $data['queue'];
        $this->routingKey   = (string) $data['routingKey'];
        $this->redelivered  = (bool) $data['routingKey'];
    }