<?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 offeredByTrait {
|
use arrayHelper;
|
/**
|
* @var Person|Organization|array A pointer to the organization or person making the offer.
|
* Inverse property: makesOffer
|
*/
|
protected Person|Organization|array $offeredBy;
|
|
public function getOfferedBy():Person|Organization|array|null
|
{
|
return $this->offeredBy??null;
|
}
|
public function setOfferedBy(Person|Organization|array $offeredBy):void
|
{
|
if (is_array($offeredBy)) {
|
$offeredBy = $this->mixedArray('offeredBy', $offeredBy,[
|
'JVBase\managers\SEO\render\Thing\Organization\Organization',
|
'JVBase\managers\SEO\render\Thing\Person\Person'
|
]);
|
}
|
$this->offeredBy = $offeredBy;
|
}
|
}
|