<?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;
|
}
|
}
|