Page MenuHomePhabricator

Create Value Object for AddDonationResponse
Open, Needs TriagePublic

Description

The AddDonationUseCase should not return a mutable Donation object, because theoretically the template / framework code could call statue-changing methods on it (that would not get saved) and is a poor separation of concerns.

Instead, the AddDonationUseCase response should contain an immutable value object.