orderId = $orderId; $this->step = new StepObject(self::STEP_REFERENCE, $completeDate); } /** * @return bool */ public function validator(): bool { return true; } /** * @return JsonResponse * @throws InternalServerErrorException * @throws \App\Classes\Modules\Accounts\Exceptions\CannotCreateOrderStepsException */ public function execute(): JsonResponse { (new generateOrderSteps())->execute($this->orderId); return $this->handler($this->orderId, $this->step); } }