<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\Traits\_Helpers\arrayHelper;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait contentTypeTrait {
|
use arrayHelper;
|
/**
|
* @var string|array The supported content type(s) for an EntryPoint response.
|
*/
|
protected string|array $contentType;
|
|
public function getContentType():string|array|null
|
{
|
return $this->contentType??null;
|
}
|
public function setContentType(string|array $contentType):void
|
{
|
if (is_array($contentType)) {
|
$contentType = $this->stringArray('contentType', $contentType);
|
}
|
$this->contentType = $contentType;
|
}
|
}
|