<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class LegalFile extends Model
{
    use HasFactory;

    protected $fillable = [
        'type',
        'file_path',
    ];

    public const TYPE_BUY = 'buy';
    public const TYPE_SELL = 'sell';

    public static function getTypes(): array
    {
        return [
            self::TYPE_BUY => 'خرید',
            self::TYPE_SELL => 'فروش',
        ];
    }
}
