<?php

namespace Wappointment\Listeners;

use Wappointment\Models\Reminder;
class AppointmentRescheduledListener extends \Wappointment\Listeners\AppointmentConfirmedListener
{
    protected $jobClass = '\Wappointment\Jobs\AppointmentEmailRescheduled';
    protected $cancel = \true;
    protected $event_trigger = Reminder::APPOINTMENT_RESCHEDULED;
    protected function addToJobs($event)
    {
        $this->data_job = ['oldAppointment' => $event->getAppointment(), 'args' => $event->getAdditional()];
        parent::addToJobs($event);
    }
}
