Domain-Driven Design - The Factory in PHP
A Factory is a great tool that can ensure business rules that apply on the construction of an object. I will show you a neat implementation in PHP.
Tags: php, ddd