<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\Thing\CreativeWork\CreativeWork;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait acquireLicensePageTrait {
|
/**
|
* @var CreativeWork|string Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.
|
*/
|
protected CreativeWork|string $acquireLicensePage;
|
|
public function getAcquireLicensePage():CreativeWork|string|null
|
{
|
return $this->acquireLicensePage??null;
|
}
|
public function setAcquireLicensePage(CreativeWork|string $acquireLicensePage):void
|
{
|
if (is_string($acquireLicensePage)) {
|
if (!filter_var($acquireLicensePage, FILTER_VALIDATE_URL)) {
|
error_log('[SEO] acquireLicensePage is meant to be a url');
|
return;
|
}
|
}
|
$this->acquireLicensePage = $acquireLicensePage;
|
}
|
}
|