/** * * @param IEventDispatcher $target Set the real event target instance */ public static function create(IEventDispatcher $target = null) { $instance = new EventDispatcher(); $instance->setEventTarget($target); return $instance; }