<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\Thing\CreativeWork\CreativeWork;
|
use JVBase\managers\SEO\render\Traits\_Helpers\arrayHelper;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait workFeaturedTrait {
|
use arrayHelper;
|
/**
|
* @var CreativeWork|array A work featured in some event, e.g. exhibited in an ExhibitionEvent. Specific subproperties are available for workPerformed (e.g. a play), or a workPresented (a Movie at a ScreeningEvent).
|
*/
|
protected CreativeWork|array $workFeatured;
|
|
public function getWorkFeatured():CreativeWork|array|null
|
{
|
return $this->workFeatured??null;
|
}
|
public function setWorkFeatured(CreativeWork|array $workFeatured):void
|
{
|
if (is_array($workFeatured)) {
|
$workFeatured = $this->classArray('workFeatured', $workFeatured, 'JVBase\managers\SEO\render\Thing\CreativeWork\CreativeWork');
|
}
|
$this->workFeatured = $workFeatured;
|
}
|
}
|