<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait embedURLTrait {
|
/**
|
* @var string A URL pointing to a player for a specific video. In general, this is the information in the src element of an embed tag and should not be the same as the content of the loc tag.
|
*/
|
protected string $embedURL;
|
|
public function getEmbedURL():?string
|
{
|
return $this->embedURL??null;
|
}
|
public function setEmbedURL(string $embedURL):void
|
{
|
if (!filter_var($embedURL, FILTER_VALIDATE_URL)) {
|
error_log('[SEO]embedURL is intended to be a valid URL: '.$embedURL);
|
return;
|
}
|
$this->embedURL = $embedURL;
|
}
|
}
|