<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\Thing\Place\Place;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait foundingLocationTrait {
|
/**
|
* @var Place The place where the Organization was founded.
|
*/
|
protected Place $foundingLocation;
|
|
public function getFoundingLocation():?Place
|
{
|
return $this->foundingLocation??null;
|
}
|
public function setFoundingLocation(Place $foundingLocation):void
|
{
|
$this->foundingLocation = $foundingLocation;
|
}
|
|
public function getFoundingLocationFieldConfig():array
|
{
|
return [
|
'type' => 'group',
|
'label' => 'Founding Location',
|
'fields' => [
|
'name' => [
|
'type' => 'text',
|
'label' => 'City Name'
|
],
|
'sameAs' => [
|
'type' => 'url',
|
'label' => 'Same as',
|
'hint' => 'Wikipedia page of neighbourhood/city/province/country'
|
]
|
]
|
];
|
}
|
}
|