<?php

namespace App\Services;

class LicenseService
{
    public function isActive(?object $license): bool
    {
        return $license && $license->status === 'active' && $license->expires_at >= now()->toDateString();
    }
}
