code: private function generateNumber(CustomerInterface $customer)
      {
          if (0 == strlen($customer->getNumber())) {
              $this->numberGenerator->generate($customer);
  
              return true;
          }
  
          return false;
      }
docs: Generates the number.
  
  @param CustomerInterface $customer
  
  @return bool Whether the customer number has been generated or not.