submissionId = $submissionId; $this->context = $context; $this->agency = $agency; } /** * Execute the job. * */ public function handle() { $submission = Repo::submission()->get($this->submissionId); if (!$submission || !$this->agency) { throw new JobException(JobException::INVALID_PAYLOAD); } $this->agency->depositSubmissions([$submission], $this->context); } }