<?php

namespace Artemis\Loyalty\Events;

use Illuminate\Queue\SerializesModels;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;

class TierUpgraded
{
    use Dispatchable, InteractsWithSockets, SerializesModels;

    public $user;
    public $oldTier;
    public $newTier;

    public function __construct($user, $oldTier, $newTier)
    {
        $this->user = $user;
        $this->oldTier = $oldTier;
        $this->newTier = $newTier;
    }
}
