Вход Регистрация
Файл: vendor/laravel/framework/src/Illuminate/JsonSchema/JsonSchema.php
Строк: 41
<?php

namespace IlluminateJsonSchema;

use 
Closure;
use 
IlluminateJsonSchemaTypesType;

/**
 * @method static TypesObjectType object(Closure|array<string, TypesType> $properties = [])
 * @method static TypesIntegerType integer()
 * @method static TypesNumberType number()
 * @method static TypesStringType string()
 * @method static TypesBooleanType boolean()
 * @method static TypesArrayType array()
 * @method static TypesUnionType union(array<int, string> $types)
 */
class JsonSchema
{
    
/**
     * Build a type from a raw array of the Laravel-supported JSON Schema subset.
     *
     * @param  array<string, mixed>  $schema
     *
     * @throws InvalidArgumentException
     */
    
public static function fromArray(array $schema): Type
    
{
        return 
Deserializer::deserialize($schema);
    }

    
/**
     * Dynamically pass static methods to the schema instance.
     */
    
public static function __callStatic(string $namemixed $arguments): Type
    
{
        return (new 
JsonSchemaTypeFactory)->$name(...$arguments);
    }
}
Онлайн: 0
Реклама