Jake Vanderwerf
5 days ago 0dfe1d8afafc59c4a5559c498342668d5a58d6ef
inc/registrar/config/Integration.php
@@ -27,6 +27,7 @@
    * @var bool whether this is a customer role, used if this is a user-based Registrar
    */
   protected bool $isCustomer;
   protected ?string $category = null;
@@ -58,6 +59,7 @@
         error_log('[Integration]::setContentType Service is not setup. '.$this->service_name);
         return $this;
      }
      $allowed = $connection->getAllowedContent();
      if (!in_array($content, $allowed)) {
         error_log($this->service_name.' Connection does not support this content: '.$content);
@@ -72,6 +74,14 @@
      return $this->content_type;
   }
   public function setCategory(string $category):void
   {
      $check = Registrar::getInstance($category);
      if ($check) {
         $this->category = $check->getBased();
      }
   }
   public function setInitial(bool $set):self
   {
      $this->initial = $set;