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