<?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 legalRepresentativeTrait {
|
use arrayHelper;
|
/**
|
* @var Person|array One or multiple persons who represent this organization legally such as CEO or sole administrator.
|
*/
|
protected Person|array $legalRepresentative;
|
|
public function getLegalRepresentative():Person|array|null
|
{
|
return $this->legalRepresentative??null;
|
}
|
public function setLegalRepresentative(Person|array $legalRepresentative):void
|
{
|
if (is_array($legalRepresentative)){
|
$legalRepresentative = $this->classArray('legalRepresentative', $legalRepresentative, 'JVBase\managers\SEO\render\Thing\Person\Person');
|
}
|
$this->legalRepresentative = $legalRepresentative;
|
}
|
}
|