<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\Thing\Place\AdministrativeArea\Country;
|
use JVBase\managers\SEO\render\Traits\_Helpers\arrayHelper;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait applicableCountryTrait {
|
use arrayHelper;
|
|
/**
|
* @var Country|string|array A country where a particular merchant return policy applies to, for example the two-letter ISO 3166-1 alpha-2 country code.
|
*/
|
protected Country|string|array $applicableCountry;
|
|
public function getApplicableCountry():Country|string|array|null
|
{
|
return $this->applicableCountry??null;
|
}
|
public function setApplicableCountry(Country|string|array $applicableCountry):void
|
{
|
if(is_array($applicableCountry)){
|
$applicableCountry = $this->mixedArray('applicableCountry', $applicableCountry, [
|
'string',
|
'JVBase\managers\SEO\render\Thing\Place\AdministrativeArea\Country'
|
]);
|
}
|
$this->applicableCountry = $applicableCountry;
|
}
|
}
|