Observer

Define a one-to-many dependency between objects where a state change in one object results in all its dependents being notified and updated automatically.

Examples in PHP
No examples yet.
You can see if there are examples in other languages or
be the first to post an example in PHP!