getBuiltinType(), false, $types[0]->getClassName(), $types[0]->isCollection(), $types[0]->getCollectionKeyType(), $types[0]->getCollectionValueType()); // ignore nullable field if ($types[0]->isNullable()) { $property->nullable = true; $property->allOf = [new OA\Schema(['ref' => $this->modelRegistry->register(new Model($type, $groups))])]; return; } $property->ref = $this->modelRegistry->register(new Model($type, $groups)); } public function supports(array $types): bool { return 1 === count($types) && Type::BUILTIN_TYPE_OBJECT === $types[0]->getBuiltinType(); } }