<?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;
|
}
|
}
|