orderId = $orderId; $this->step = new StepObject(self::STEP_REFERENCE, $completeDate); } /** * @return bool */ public function validator(): bool { if(!ShippingArrangement::where('order_id', $this->orderId)->exists()) { return false; } return true; } /** * @return JsonResponse * @throws InternalServerErrorException */ public function execute(): JsonResponse { return $this->handler($this->orderId, $this->step); } }