for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Shoman4eg\Nalog\DTO;
/**
* @author Artem Dubinin <[email protected]>
*/
final class DateTime implements \JsonSerializable
{
private \DateTimeInterface $dateTime;
public function __construct(\DateTimeInterface $dateTime)
$this->dateTime = $dateTime;
}
public function jsonSerialize(): string
return $this->dateTime->format(DATE_ATOM);