Jake Vanderwerf
2026-04-15 c4aa5cdb5e90ad4b420e22772797d16980232a2b
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
26
<?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;
    }
}