<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait serviceUrlTrait {
|
/**
|
* @var string URL of the item.
|
*/
|
protected string $serviceUrl;
|
|
public function getServiceUrl():?string
|
{
|
return $this->serviceUrl??null;
|
}
|
public function setServiceUrl(string $serviceUrl):void
|
{
|
if (!filter_var($serviceUrl, FILTER_VALIDATE_URL)) {
|
error_log('[SEO]Not a valid serviceUrl: '.$serviceUrl);
|
return;
|
}
|
$this->serviceUrl = $serviceUrl;
|
}
|
}
|