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
33
34
35
36
<?php
namespace JVBase\managers\SEO\render\Traits\_Properties;
 
use JVBase\managers\SEO\render\Thing\Intangible\CategoryCode;
use JVBase\managers\SEO\render\Thing\Intangible\Enumeration\PhysicalActivityCategory;
use JVBase\managers\SEO\render\Thing\Thing;
use JVBase\managers\SEO\render\Traits\_Helpers\arrayHelper;
 
if (!defined('ABSPATH')) {
    exit;
}
trait occupationalCategoryTrait {
    use arrayHelper;
    /**
     * @var CategoryCode|Thing|string|array A category describing the job, preferably using a term from a taxonomy such as BLS O*NET-SOC, ISCO-08 or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.
     *
     * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC.
     */
    protected CategoryCode|Thing|string|array $occupationalCategory;
 
    public function getOccupationalCategory():CategoryCode|Thing|string|array|null
    {
        return $this->occupationalCategory??null;
    }
    public function setOccupationalCategory(CategoryCode|Thing|string|array $occupationalCategory):void
    {
        if (is_array($occupationalCategory)) {
            $occupationalCategory = $this->mixedArray('occupationalCategory', $occupationalCategory, [
                'string',
                'JVBase\managers\SEO\render\Thing\Thing',
                'JVBase\managers\SEO\render\Thing\Intangible\CategoryCode'
            ]);
        }
        $this->occupationalCategory = $occupationalCategory;
    }
}