| 1 | <?php  | 
            ||
| 21 | final class Projector  | 
            ||
| 22 | { | 
            ||
| 23 | private $eventHandlers;  | 
            ||
| 24 | private static $instance = null;  | 
            ||
| 25 | |||
| 26 | public static function instance() : self  | 
            ||
| 34 | |||
| 35 | private function __construct()  | 
            ||
| 39 | |||
| 40 | public function __clone()  | 
            ||
| 44 | |||
| 45 | public function register(array $eventHandlers)  | 
            ||
| 51 | |||
| 52 | private function add(EventHandler $eventHandler)  | 
            ||
| 56 | |||
| 57 | public function project(DomainEventCollection $events) : void  | 
            ||
| 65 | }  | 
            ||
| 66 |