<?php

namespace App\Billing\ValueObject;

final readonly class ShareBreakdown
{
    public function __construct(
        public int $totalRials,
        public int $baseInsuranceRials,
        public int $supplementaryRials,
        public int $patientRials,
    ) {}

    public function toArray(): array
    {
        return [
            'total_rials'           => $this->totalRials,
            'base_insurance_rials'  => $this->baseInsuranceRials,
            'supplementary_rials'   => $this->supplementaryRials,
            'patient_rials'         => $this->patientRials,
        ];
    }
}
