Jake Vanderwerf
9 days ago ed57c386db34d8693ca75311972d0929ebe5f488
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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;
    }
}