<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\DataType\Time;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait opensTrait {
|
/**
|
* @var Time The opening hour of the place or service on the given day(s) of the week
|
*/
|
protected Time $opens;
|
|
public function getOpens():?Time
|
{
|
return $this->opens??null;
|
}
|
public function setOpens(Time|string $opens):void
|
{
|
if (is_string($opens)) {
|
$opens = new Time($opens);
|
}
|
$this->opens = $opens;
|
}
|
}
|