<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait contentUrlTrait {
|
/**
|
* @var string Actual bytes of the media object, for example the image file or video file.
|
*/
|
protected string $contentUrl;
|
|
public function getContentUrl():?string
|
{
|
return $this->contentUrl??null;
|
}
|
public function setContentUrl(string $contentUrl):void
|
{
|
if (!filter_var($contentUrl, FILTER_VALIDATE_URL)) {
|
error_log('[SEO]contentUrl is expected to be a valid url to a file.');
|
return;
|
}
|
$this->contentUrl = $contentUrl;
|
}
|
}
|