| | |
| | | * @var bool whether this is a customer role, used if this is a user-based Registrar |
| | | */ |
| | | protected bool $isCustomer; |
| | | protected ?string $category = null; |
| | | |
| | | |
| | | |
| | |
| | | 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); |
| | |
| | | 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; |