flux-querybuilder/src/Type/TimeType.php
davidarendsen 923cb7dcb7 Rename types to Type suffix
Signed-off-by: davidarendsen <davidarendsen@hey.com>
2022-08-16 15:49:06 +00:00

18 lines
341 B
PHP

<?php
namespace Arendsen\FluxQueryBuilder\Type;
use DateTime;
class TimeType 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') . ')';
}
}