mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-28 07:19:26 +02:00
6 lines
236 B
Markdown
6 lines
236 B
Markdown
# 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.
|