flux-querybuilder/src/Type/Time.php

18 lines
337 B
PHP
Raw Normal View History

<?php
namespace Arendsen\FluxQueryBuilder\Type;
use DateTime;
class Time implements TypeInterface
{
public function __construct(DateTime $dateTime)
{
$this->dateTime = $dateTime;
}
public function __toString(): string
{
return 'time(v: ' . $this->dateTime->format('Y-m-d\TH:i:s\Z') . ')';
}
}