Jake Vanderwerf
2026-05-03 9bbeea742424837fb58207d88e10dbca0b2cae04
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?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;
    }
}