<?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 attendeeTrait {
|
use arrayHelper;
|
/**
|
* @var Organization|Person|array A person or organization attending the event. Supersedes attendees.
|
*/
|
protected Organization|Person|array $attendee;
|
|
public function getAttendee():Organization|Person|array|null
|
{
|
return $this->attendee??null;
|
}
|
public function setAttendee(Organization|Person|array $attendee):void
|
{
|
if (is_array($attendee)) {
|
$attendee = $this->mixedArray('attendee', $attendee, [
|
'JVBase\managers\SEO\render\Thing\Organization\Organization',
|
'JVBase\managers\SEO\render\Thing\Person\Person'
|
]);
|
}
|
$this->attendee = $attendee;
|
}
|
}
|