<?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 producerTrait {
|
use arrayHelper;
|
/**
|
* @var Organization|Person|array The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.).
|
*/
|
protected Organization|Person|array $producer;
|
|
public function getProducer():Organization|Person|array|null
|
{
|
return $this->producer??null;
|
}
|
public function setProducer(Organization|Person|array $producer):void
|
{
|
if (is_array($producer)) {
|
$producer = $this->mixedArray('producer', $producer, [
|
'JVBase\managers\SEO\render\Thing\Organization\Organization',
|
'JVBase\managers\SEO\render\Thing\Person\Person'
|
]);
|
}
|
$this->producer = $producer;
|
}
|
}
|