<?php

namespace App\Insurance\ValueObject;

final readonly class CoverageRule
{
    public function __construct(
        public float $coveragePercent,
        public int   $franchiseRials,
        public ?int  $ceilingRials,
        public bool  $covered = true,
    ) {}

    public static function notCovered(): self
    {
        return new self(0.0, 0, null, false);
    }
}
