<?php
namespace IlluminateJsonSchemaTypes;
class AnyOfType extends Type
{
/**
* Create a new anyOf type instance.
*
* @param array<int, Type> $schemas
*/
public function __construct(protected array $schemas)
{
$this->schemas = array_values($schemas);
}
/**
* Get the anyOf schemas.
*
* @return array<int, Type>
*/
public function schemas(): array
{
return $this->schemas;
}
}