Files
DesignPatternsPHP/Behavioral/State/README.md
2014-07-31 14:13:53 -05:00

290 B

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.

UML Diagram

Alt State UML Diagram