<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\Thing\Organization\Organization;
|
use JVBase\managers\SEO\render\Traits\_Helpers\arrayHelper;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait affiliationTrait {
|
use arrayHelper;
|
/**
|
* @var Organization|array An organization that this person is affiliated with. For example, a school/university, a club, or a team.
|
*/
|
protected Organization|array $affiliation;
|
|
public function getAffiliation():Organization|array|null
|
{
|
return $this->affiliation??null;
|
}
|
public function setAffiliation(Organization|array $affiliation):void
|
{
|
if (is_array($affiliation)) {
|
$affiliation =$this->classArray('affiliation', $affiliation, 'JVBase\managers\SEO\render\Thing\Organization\Organization');
|
}
|
$this->affiliation = $affiliation;
|
}
|
}
|