<?php
class EventBus{
private $events=[];
public function publish($topic,$payload=[]){
$this->events[]=array('topic'=>$topic,'payload'=>$payload,'time'=>date('c'));
}
public function history(){return $this->events;}
}
