final class Expect

Schema generator.

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 $object, array $items = [])

No description

static Type
arrayOf(string|Schema $valueType, string|Schema|null $keyType = null)

No description

static Type
listOf(string|Schema $type)

No description

static Type
scalar(mixed $default)

No description

static Type
string(mixed $default)

No description

static Type
int(mixed $default)

No description

static Type
float(mixed $default)

No description

static Type
bool(mixed $default)

No description

static Type
null()

No description

static Type
array(mixed $default)

No description

static Type
list(mixed $default)

No description

static Type
mixed(mixed $default)

No description

static Type
email(mixed $default)

No description

static Type
unicode(mixed $default)

No description

Details

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

No description

Parameters

string $name
array $args

Return Value

Type

at line 48
static Type type(string $type)

No description

Parameters

string $type

Return Value

Type

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

No description

Parameters

mixed|Schema ...$set

Return Value

AnyOf

at line 66
static Structure structure(array $items)

No description

Parameters

array $items

Return Value

Structure

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

No description

Parameters

object $object
array $items

Return Value

Structure

at line 106
static Type arrayOf(string|Schema $valueType, string|Schema|null $keyType = null)

No description

Parameters

string|Schema $valueType
string|Schema|null $keyType

Return Value

Type

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

No description

Parameters

string|Schema $type

Return Value

Type

at line 33
static Type scalar(mixed $default)

No description

Parameters

mixed $default

Return Value

Type

at line 33
static Type string(mixed $default)

No description

Parameters

mixed $default

Return Value

Type

at line 33
static Type int(mixed $default)

No description

Parameters

mixed $default

Return Value

Type

at line 33
static Type float(mixed $default)

No description

Parameters

mixed $default

Return Value

Type

at line 33
static Type bool(mixed $default)

No description

Parameters

mixed $default

Return Value

Type

at line 33
static Type null()

No description

Return Value

Type

at line 33
static Type array(mixed $default)

No description

Parameters

mixed $default

Return Value

Type

at line 33
static Type list(mixed $default)

No description

Parameters

mixed $default

Return Value

Type

at line 33
static Type mixed(mixed $default)

No description

Parameters

mixed $default

Return Value

Type

at line 33
static Type email(mixed $default)

No description

Parameters

mixed $default

Return Value

Type

at line 33
static Type unicode(mixed $default)

No description

Parameters

mixed $default

Return Value

Type

Traits

SmartObject