Documentation

Expect
in package

FinalYes

Schema generator.

Table of Contents

Methods

__callStatic()  : Type
anyOf()  : AnyOf
array()  : Structure|Type
arrayOf()  : Type
bool()  : Type
email()  : Type
float()  : Type
from()  : Structure
int()  : Type
list()  : Type
listOf()  : Type
mixed()  : Type
null()  : Type
scalar()  : Type
string()  : Type
structure()  : Structure
type()  : Type
unicode()  : Type

Methods

__callStatic()

public static __callStatic(string $name, array<string|int, mixed> $args) : Type
Parameters
$name : string
$args : array<string|int, mixed>
Return values
Type

anyOf()

public static anyOf(mixed ...$set) : AnyOf
Parameters
$set : mixed
Return values
AnyOf

array()

public static array([array<string|int, mixed> $shape = [] ]) : Structure|Type
Parameters
$shape : array<string|int, mixed> = []
Return values
Structure|Type

arrayOf()

public static arrayOf(string|Schema $valueType[, string|Schema|null $keyType = null ]) : Type
Parameters
$valueType : string|Schema
$keyType : string|Schema|null = null
Return values
Type

bool()

public static bool([mixed $default = = 'null' ]) : Type
Parameters
$default : mixed = = 'null'
Return values
Type

email()

public static email([mixed $default = = 'null' ]) : Type
Parameters
$default : mixed = = 'null'
Return values
Type

float()

public static float([mixed $default = = 'null' ]) : Type
Parameters
$default : mixed = = 'null'
Return values
Type

from()

public static from(object $object[, array<string|int, mixed> $items = [] ]) : Structure
Parameters
$object : object
$items : array<string|int, mixed> = []
Return values
Structure

int()

public static int([mixed $default = = 'null' ]) : Type
Parameters
$default : mixed = = 'null'
Return values
Type

list()

public static list([mixed $default = = '[]' ]) : Type
Parameters
$default : mixed = = '[]'
Return values
Type

mixed()

public static mixed([mixed $default = = 'null' ]) : Type
Parameters
$default : mixed = = 'null'
Return values
Type

scalar()

public static scalar([mixed $default = = 'null' ]) : Type
Parameters
$default : mixed = = 'null'
Return values
Type

string()

public static string([mixed $default = = 'null' ]) : Type
Parameters
$default : mixed = = 'null'
Return values
Type

type()

public static type(string $type) : Type
Parameters
$type : string
Return values
Type

unicode()

public static unicode([mixed $default = = 'null' ]) : Type
Parameters
$default : mixed = = 'null'
Return values
Type

        
On this page

Search results