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 ...$set)

No description

static Structure
structure(array $items)

No description

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

No description

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

No description

static Type
listOf(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 54
static AnyOf anyOf(mixed ...$set)

No description

Parameters

mixed ...$set

Return Value

AnyOf

at line 63
static Structure structure(array $items)

No description

Parameters

array $items

Return Value

Structure

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

No description

Parameters

object $object
array $items

Return Value

Structure

at line 93
static Type arrayOf(Schema $valueType, Schema $keyType = null)

No description

Parameters

Schema $valueType
Schema $keyType

Return Value

Type

at line 99
static Type listOf(Schema $type)

No description

Parameters

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