<?php

namespace App\Modules\Bookings;

use App\Models\ValidationModel;

class TaskType extends ValidationModel
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['name'];

    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'task_types';

    /**
     * Returns all the template TaskTypes.
     *
     * @return Collection
     */
    public static function getTaskTypes()
    {
        return self::all();
    }
}
