15 lines
308 B
PHP
15 lines
308 B
PHP
<?php
|
|
|
|
namespace Hosterra\FluxBuilder\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' ) . ')';
|
|
}
|
|
}
|