jobParams = array($subtaskId, $eventName, $values); return $this; } /** * Execute job * * @param int $subtaskId * @param string $eventName * @param array $values * @return $this */ public function execute($subtaskId, $eventName, array $values = array()) { $event = SubtaskEventBuilder::getInstance($this->container) ->withSubtaskId($subtaskId) ->withValues($values) ->build(); if ($event !== null) { $this->dispatcher->dispatch($eventName, $event); } } }