Use value objects in models
Closed this issue · 0 comments
damien-carcel commented
Right now, models use only primitive types.
Those should be replaced by value objects containing the various business rules affecting them.
Use private constructors in the process and remove the Symfony user interface.