customerRegistry = $customerRegistry; $this->customerAuthUpdate = $customerAuthUpdate; } /** * Lock customer by ID. * * @param int $customerId * * @return void */ public function execute(int $customerId): void { $customerSecure = $this->customerRegistry->retrieveSecureData($customerId); $customerSecure->setLockExpires('2030-12-31 00:00:00'); $this->customerAuthUpdate->saveAuth($customerId); } }