| | |
| | | $this->service_name = $service; |
| | | } |
| | | |
| | | |
| | | public function getService_name():string |
| | | { |
| | | return $this->service_name; |
| | |
| | | */ |
| | | public function setContentType(string $content):self |
| | | { |
| | | $allowed = JVB()->connect($this->service_name)->getAllowedContent(); |
| | | $connection = JVB()->connect($this->service_name); |
| | | if (!$connection){ |
| | | 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; |