<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\Thing\Intangible\Enumeration\BusinessEntityType;
|
use JVBase\managers\SEO\render\Traits\_Helpers\arrayHelper;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait eligibleCustomerTypeTrait {
|
use arrayHelper;
|
/**
|
* @var BusinessEntityType|array The type(s) of customers for which the given offer is valid.
|
*/
|
protected BusinessEntityType|array $eligibleCustomerType;
|
|
public function getEligibleCustomerType():BusinessEntityType|array|null
|
{
|
return $this->eligibleCustomerType??null;
|
}
|
public function setEligibleCustomerType(BusinessEntityType|array $eligibleCustomerType):void
|
{
|
if (is_array($eligibleCustomerType)) {
|
$eligibleCustomerType = $this->classArray('eligibleCustomerType', $eligibleCustomerType, 'JVBase\managers\SEO\render\Thing\Intangible\Enumeration\BusinessEntityType');
|
}
|
$this->eligibleCustomerType = $eligibleCustomerType;
|
}
|
}
|