<?php

declare(strict_types=1);

namespace EDD\Vendor\Carbon\Doctrine;

use EDD\Vendor\Carbon\Carbon;
use DateTime;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\VarDateTimeType;

class DateTimeType extends VarDateTimeType implements CarbonDoctrineType
{
    /** @use CarbonTypeConverter<Carbon> */
    use CarbonTypeConverter;

    /**
     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
     */
    public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?EDD\Vendor\Carbon
    {
        return $this->doConvertToPHPValue($value);
    }
}
