Design Pattern: State Pattern in PHP
State pattern implements a system where an object is able to change its behavior based on state(one or more properties) of that object. The behavior can change completely or partially. This article demonstrates State pattern implementations in PHP.