Jake Vanderwerf
2026-05-03 9bbeea742424837fb58207d88e10dbca0b2cae04
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?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;
    }
}