<?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 sponsorTrait {
|
use arrayHelper;
|
/**
|
* @var Organization|Person|array A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.
|
*/
|
protected Organization|Person|array $sponsor;
|
|
public function getSponsor():Organization|Person|array|null
|
{
|
return $this->sponsor??null;
|
}
|
public function setSponsor(Organization|Person|array $sponsor):void
|
{
|
if (is_array($sponsor)){
|
$sponsor = $this->mixedArray('sponsor', $sponsor, [
|
'JVBase\managers\SEO\render\Thing\Organization\Organization',
|
'JVBase\managers\SEO\render\Thing\Person\Person'
|
]);
|
}
|
$this->sponsor = $sponsor;
|
}
|
}
|