from rights_filter.domain.records import Evidence


class ReasonBuilder:
    def reasons_for(self, evidence: list[Evidence]) -> list[str]:
        reasons: list[str] = []
        for item in evidence:
            if item.reason and item.reason not in reasons:
                reasons.append(item.reason)
        return reasons


__all__ = ["ReasonBuilder"]
