Jake Vanderwerf
9 days ago ed57c386db34d8693ca75311972d0929ebe5f488
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
32
<?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;
    }
}