<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class PaymentOption extends Model
{
    protected $fillable = ['name', 'description', 'status'];
    
    protected $casts = [
        'status' => 'boolean',
    ];
    
    /**
     * Get the payments using this payment option.
     */
    public function payments()
    {
        return $this->hasMany(Payment::class);
    }
}
