public function __construct(Response $response, array $entryEvents, Event $completeEvent) { $this->fields = $response->getFields(); $this->response = $response; $this->entryEvents = $entryEvents; $this->completeEvent = $completeEvent; }
public function writeResponse(Response $response) { $message = Arr::get($response->getFields(), 'Message', null); $this->line($message); $this->stop(); }