I believe the main point was something else validating the order instead of it validating itself.
we all know getters and setters are a necessary evil if you want to use outside tools, i.e. ORMs.
<blockquote>
More information about formatting options
If you listen to your code, it'll tell you what you need.
— Kent Beck (probably)
↑ Grab this Headline Animator
getters and setters
I believe the main point was something else validating the order instead of it validating itself.
we all know getters and setters are a necessary evil if you want to use outside tools, i.e. ORMs.