function unserialize($vars) {
        if(\CharlotteDunois\Yasmin\Models\ClientBase::$serializeClient === null) {
            throw new \Exception('Unable to unserialize a class without ClientBase::$serializeClient being set');
        }
        
        $vars = \unserialize($vars);
        
        foreach($vars as $name => $val) {
            $this->$name = $val;
        }
        
        $this->client = \CharlotteDunois\Yasmin\Models\ClientBase::$serializeClient;
        $this->commands = new \CharlotteDunois\Collect\Collection();
    }
function unserialize($vars) {
        if(\CharlotteDunois\Yasmin\Models\ClientBase::$serializeClient === null) {
            throw new \Exception('Unable to unserialize a class without ClientBase::$serializeClient being set');
        }
        
        $vars = \unserialize($vars);
        
        foreach($vars as $name => $val) {
            $this->$name = $val;
        }
        
        $this->client = \CharlotteDunois\Yasmin\Models\ClientBase::$serializeClient;
        $this->commands = new \CharlotteDunois\Collect\Collection();
    }
function unserialize ( $ vars ) { if ( \ CharlotteDunois \ Yasmin \ Models \ ClientBase :: $ serializeClient === null ) { throw new \ Exception ( 'Unable to unserialize a class without ClientBase::$serializeClient being set' ) ; } $ vars = \ unserialize ( $ vars ) ; foreach ( $ vars as $ name => $ val ) { $ this -> $ name = $ val ; } $ this -> client = \ CharlotteDunois \ Yasmin \ Models \ ClientBase :: $ serializeClient ; $ this -> commands = new \ CharlotteDunois \ Collect \ Collection ( ) ; }
Depends on Client for command re-registration.
@return void
@internal
Depends on Client for command re - registration .