type = 'string'; $property->format = 'date-time'; } public function supports(Type $type): bool { return Type::BUILTIN_TYPE_OBJECT === $type->getBuiltinType() && is_a($type->getClassName(), \DateTimeInterface::class, true); } }