for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
///**
// * This file is part of dispositif/wikibot application
// * 2019 : Philippe M. <[email protected]>
// * For the full copyright and MIT license information, please view the LICENSE file.
// */
//
//declare(strict_types=1);
//namespace App\Infrastructure;
//use SplObserver;
// * TODO: not used
// * Observer pattern. For class which implements SplSubject.
// * Trait SubjectTrait.
//trait SubjectTrait
//{
// protected $observers = [];
// public function attach(SplObserver $observer)
// {
// $this->observers[] = $observer;
// return $this;
// }
// public function detach(SplObserver $observer)
// if (is_int($key = array_search($observer, $this->observers, true))) {
// unset($this->observers[$key]);
// public function notify()
// foreach ($this->observers as $observer) {
// /*
// * @var $observer SplObserver
// $observer->update($this);
//}