<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\Thing\Intangible\StructuredValue\ContactPoint;
|
use JVBase\managers\SEO\render\Traits\_Helpers\arrayHelper;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait servicePhoneTrait {
|
use arrayHelper;
|
/**
|
* @var ContactPoint|array The phone number to use to access the service.
|
*/
|
protected ContactPoint|array $servicePhone;
|
|
public function getServicePhone():ContactPoint|array|null
|
{
|
return $this->servicePhone??null;
|
}
|
public function setServicePhone(ContactPoint|array $servicePhone):void
|
{
|
if (is_array($servicePhone)){
|
$servicePhone = $this->classArray('servicePhone', $servicePhone, 'JVBase\managers\SEO\render\Thing\Intangible\StructuredValue\ContactPoint');
|
}
|
$this->servicePhone = $servicePhone;
|
}
|
}
|