<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\Thing\Person\Person;
|
use JVBase\managers\SEO\render\Traits\_Helpers\arrayHelper;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait actorTrait {
|
use arrayHelper;
|
/**
|
* @var Person|array An actor (individual or a group), e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. Supersedes actors.
|
* Note: Can also be PerformingGroup, not included
|
*/
|
protected Person|array $actor;
|
|
public function getActor():Person|array|null
|
{
|
return $this->actor??null;
|
}
|
public function setActor(Person|array $actor):void
|
{
|
if (is_array($actor)) {
|
$actor = $this->classArray('actor', $actor, 'JVBase\managers\SEO\render\Thing\Person\Person');
|
}
|
$this->actor = $actor;
|
}
|
}
|