source->actions() as $action) { HandlerFactory::getActionHandlerClass($action->response_handler_class); $action = new ActionClass($this->source, $data); $action->run(); } } /** * * @param mixed $data * */ public function __construct($data) { $this->data = $data; } }