kelemen / observer
Observer/observable classes and traits
Installs: 2 034
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >= 5.3.7
This package is auto-updated.
Last update: 2024-10-18 00:38:24 UTC
README
Observer
Usage
class Foo extends Kelemen\Observer { use Kelemen\ObserverBehavior; public function __construct($bar) { $bar->attach($this); } public function someFunction() { // process } } class Bar extends Kelemen\Observable { use Kelemen\ObservableBehavior; public function __construct() { $this->setState('someFunction') } }