<?php

namespace App\Services\Ticket;

use App\Models\TicketType;

class TicketTypeService
{
    public function create(array $data): TicketType
    {
        return TicketType::create($data);
    }

    public function update(TicketType $type, array $data): TicketType
    {
        $type->update($data);
        return $type->fresh();
    }

    public function delete(TicketType $type): bool
    {
        return $type->delete();
    }
}