final public function unserialize($serialized): void
    {
        $vars = unserialize($serialized, ['allowed_classes' => false]);
        $vars['adviceMethod'] = static::unserializeAdvice($vars['adviceMethod']);
        foreach ($vars as $key => $value) {
            $this->$key = $value;
        }
    }