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