<?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 citationTrait {
|
use arrayHelper;
|
/**
|
* @var CreativeWork|string|array A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.
|
*/
|
protected CreativeWork|string|array $citation;
|
|
public function getCitation():CreativeWork|string|array|null
|
{
|
return $this->citation??null;
|
}
|
public function setCitation(CreativeWork|string|array $citation):void
|
{
|
if (is_array($citation)) {
|
$citation = $this->mixedArray('citation', $citation, [
|
'string',
|
'JVBase\managers\SEO\render\Thing\CreativeWork\CreativeWork'
|
]);
|
}
|
$this->citation = $citation;
|
}
|
}
|