code: public function getMessagesForQuantity(float $quantity)
      {
          $messages = [];
  
          if ($quantity < $this->minimumQuantity) {
              $messages[] = $this->minimumMessage;
          } elseif (0 < $this->maximumQuantity && $quantity > $this->maximumQuantity) {
              $messages[] = $this->maximumMessage;
          } else {
              if (null !== $this->availableMessage) {
                  $messages[] = $this->availableMessage;
              }
  
              if ($quantity > $this->availableQuantity) {
                  if (null !== $this->resupplyMessage) {
                      $messages[] = $this->resupplyMessage;
                      if ($quantity > $this->availableQuantity + $this->resupplyQuantity) {
                          $messages[] = $this->overflowMessage;
                      }
                  } else {
                      $messages[] = $this->overflowMessage;
                  }
              }
          }
  
          if (empty($messages)) {
              $messages[] = $this->overflowMessage;
          }
  
          return $messages;
      }
docs: Returns the messages for the given quantity.
  
  @param float $quantity
  
  @return array