<?php
declare(strict_types=1);
namespace App\Services\Trust;

final class TrustReportBuilder
{
    /** @param list<array<string,mixed>> $checks @param array<string,mixed> $score @return array<string,mixed> */
    public function build(array $checks,array $score,array $context=[]): array
    {
        return ['ok'=>$score['decision']!=='REJECTED','score'=>$score['score'],'trust_level'=>$score['level'],'decision'=>$score['decision'],'checks'=>$checks,'score_breakdown'=>$score['breakdown'],'context'=>$context,'generated_at'=>date('c')];
    }
}
