<?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 authorTrait {
|
use arrayHelper;
|
/**
|
* @var Organization|Person|array The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably.
|
*/
|
protected Organization|Person|array $author;
|
|
public function getAuthor():Organization|Person|array|null
|
{
|
return $this->author??null;
|
}
|
public function setAuthor(Organization|Person|array $author):void
|
{
|
$this->author = $author;
|
}
|
}
|