Jake Vanderwerf
3 days ago ba1e1ccf869b818f7a7a897264dfea05563a7796
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\DataType;
use JVBase\meta\Sanitizer;
 
if (!defined('ABSPATH')) {
    exit;
}
 
final class Time {
    /**
     * @var string
     */
    protected string $time;
 
    public function __construct(string $time)
    {
        $this->setTime($time);
    }
    public function getTime():string {
        return $this->time;
    }
 
    public function setTime(string $time):void {
        $this->time = Sanitizer::sanitize($time, ['type'=> 'time']);
    }
}