Validating Value Objects

Previous blog post about Value Objects generated quite a lot of questions about validation in context of VO: should be the VO responsible for validating its state? how we should handle this validation? how to interact with users? And in this post I will try to answer these questions and show some

DDD Building Blocks in PHP: Value Object

This post is the first post of the series that will discuss Building Blocks of Domain-Driven Design. Definition according to Martin Fowler: A small simple object, like money or a date range, whose equality isn't based on identity Value Object is an object that represents a concept from your problem Domain. It