Expect
final class Expect
Schema generator.
Methods
static Type
__callStatic(string $name, array $args)
No description
Details
at line 37
static Type
__callStatic(string $name, array $args)
No description
at line 48
static Type
type(string $type)
No description
at line 66
static Structure
structure(array $items)
No description
at line 75
static Structure
from(object $object, array $items = [])
No description
at line 106
static Type
arrayOf(string|Schema $valueType, string|Schema|null $keyType = null)
No description
at line 33
static Type
scalar(mixed $default)
No description
at line 33
static Type
string(mixed $default)
No description
at line 33
static Type
int(mixed $default)
No description
at line 33
static Type
float(mixed $default)
No description
at line 33
static Type
bool(mixed $default)
No description
at line 33
static Type
null()
No description
at line 33
static Type
array(mixed $default)
No description
at line 33
static Type
list(mixed $default)
No description
at line 33
static Type
mixed(mixed $default)
No description
at line 33
static Type
email(mixed $default)
No description
at line 33
static Type
unicode(mixed $default)
No description
Traits
Strict class for better experience.