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 readonly class DateTime implements \JsonSerializable
{
public function __construct(private \DateTimeInterface $dateTime) {}
public function jsonSerialize(): string
return $this->dateTime->format(DATE_ATOM);
}