Jake Vanderwerf
2026-03-03 772462eeca3002a1d52508aeba485aab2b4742ad
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\DateTime;
use JVBase\managers\SEO\render\DataType\Time;
 
if (!defined('ABSPATH')) {
    exit;
}
trait startTimeTrait {
    /**
     * @var Time|DateTime The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to December. For media, including audio and video, it's the time offset of the end of a clip within a larger file.
     *
     * Note that Event uses startDate/endDate instead of startTime/startTime, even when describing dates with times. This situation may be clarified in future revisions.
     */
    protected Time|DateTime $startTime;
 
    public function getStartTime():Time|DateTime|null
    {
        return $this->startTime??null;
    }
    public function setStartTime(Time|DateTime $startTime):void
    {
        $this->startTime = $startTime;
    }
}