Files
DesignPatternsPHP/Behavioral/State
Antonio Spinelli e59d70a0ac start a restructure
2014-03-21 18:03:45 -03:00
..
2014-03-21 18:03:45 -03:00
2014-03-21 18:03:45 -03:00
2014-03-21 18:03:45 -03:00
2014-03-21 18:03:45 -03:00
2014-03-21 18:03:45 -03:00
2014-03-21 18:03:45 -03:00

State

Purpose

Encapsulate varying behavior for the same routine based on an object's state. This can be a cleaner way for an object to change its behavior at runtime without resorting to large monolithic conditional statements.