<?php
/**
 * Created by PhpStorm.
 * User: UNTREF
 * Date: 4/12/2017
 * Time: 3:54 PM
 */

namespace App\Events;
Use App\Subtask;


class SubtaskStatusChange extends Event
{
    public $subtask;

    /**
     * Create a new event instance.
     *
     * @param Task $task
     */
    public function __construct(Subtask $subtask)
    {

        $this->subtask = $subtask;
        $this->content= $subtask->status->name;

    }
}