<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\Thing\Place\Place;
|
use JVBase\managers\SEO\render\Traits\_Helpers\arrayHelper;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait serviceLocationTrait {
|
use arrayHelper;
|
/**
|
* @var Place|array The location (e.g. civic structure, local business, etc.) where a person can go to access the service.
|
*/
|
protected Place|array $serviceLocation;
|
|
public function getServiceLocation():Place|array|null
|
{
|
return $this->serviceLocation??null;
|
}
|
public function setServiceLocation(Place|array $serviceLocation):void
|
{
|
if (is_array($serviceLocation)) {
|
$serviceLocation = $this->classArray('serviceLocation', $serviceLocation, 'JVBase\managers\SEO\render\Thing\Place\Place');
|
}
|
$this->serviceLocation = $serviceLocation;
|
}
|
}
|