notifyObserver()
notifyObserver(\Phabstractic\Patterns\Resource\PublisherInterface $publisher, \Phabstractic\Patterns\Resource\StateInterface $state)
When a state changes or something happens, this function is called
It accepts any capable publisher, and any capable state change information.
This for example is used in the universal event system, where state is the most recent event
Parameters
\Phabstractic\Patterns\Resource\PublisherInterface | $publisher | |
\Phabstractic\Patterns\Resource\StateInterface | $state |