<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\Thing\Organization\Organization;
|
use JVBase\managers\SEO\render\Thing\Person\Person;
|
use JVBase\managers\SEO\render\Traits\_Helpers\arrayHelper;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait contributorTrait {
|
use arrayHelper;
|
/**
|
* @var Organization|Person|array A secondary contributor to the CreativeWork or Event.
|
*/
|
protected Organization|Person|array $contributor;
|
|
public function getContributor():Organization|Person|array|null
|
{
|
return $this->contributor??null;
|
}
|
public function setContributor(Organization|Person|array $contributor):void
|
{
|
if (is_array($contributor)) {
|
$contributor = $this->mixedArray('contributor', $contributor, [
|
'JVBase\managers\SEO\render\Thing\Organization\Organization',
|
'JVBase\managers\SEO\render\Thing\Person\Person'
|
]);
|
}
|
$this->contributor = $contributor;
|
}
|
}
|