class Expect

Schema generator.

Traits

Strict class for better experience.

Methods

static Type
__callStatic(string $name, array $args)

No description

static Type
type(string $type)

No description

static AnyOf
anyOf(mixed|Schema ...$set)

No description

static Structure
structure(array $items)

No description

static Structure
from($object, array $items = [])

No description

static Type
arrayOf(string|Schema $type)

No description

static Type
listOf(string|Schema $type)

No description

Details

at line 36
static Type __callStatic(string $name, array $args)

Parameters

string $name
array $args

Return Value

Type

at line 46
static Type type(string $type)

Parameters

string $type

Return Value

Type

at line 55
static AnyOf anyOf(mixed|Schema ...$set)

Parameters

mixed|Schema ...$set

Return Value

AnyOf

at line 64
static Structure structure(array $items)

Parameters

array $items

Return Value

Structure

at line 73
static Structure from($object, array $items = [])

Parameters

$object
array $items

Return Value

Structure

at line 102
static Type arrayOf(string|Schema $type)

Parameters

string|Schema $type

Return Value

Type

at line 111
static Type listOf(string|Schema $type)

Parameters

string|Schema $type

Return Value

Type