PatternsPublisherTrait.php

Falcraft Libraries Pattern, Falcraft/Pattern: FALCRAFT LIBRARIES

This is a publisher implementation in the Observer/Publisher design pattern. This consists of registering one or more observers to the publisher object (stores in a restricted set). The publisher keeps track of a state and whenever that state changes it announces it to all its observers.

In the Universal Event System (Phabstractic\Event) The states are event objects

Traits

PublisherTrait Publisher Class - The basic minimal publisher functionality