<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\Thing\Product\Product;
|
use JVBase\managers\SEO\render\Traits\_Helpers\arrayHelper;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait productSupportedTrait {
|
use arrayHelper;
|
/**
|
* @var Product|string|array The product or service this support contact point is related to (such as product support for a particular product line). This can be a specific product or product line (e.g. "iPhone") or a general category of products or services (e.g. "smartphones").
|
*/
|
protected Product|string|array $productSupported;
|
|
public function getProductSupported():Product|string|array|null
|
{
|
return $this->productSupported??null;
|
}
|
public function setProductSupported(Product|string|array $productSupported):void
|
{
|
if (is_array($productSupported)) {
|
$productSupported = $this->mixedArray('productSupported', $productSupported, [
|
'string',
|
'JVBase\managers\SEO\render\Thing\Product\Product'
|
]);
|
}
|
$this->productSupported = $productSupported;
|
}
|
}
|