final class Helpers

internal  
 

Constants

PreventMerging

Methods

static mixed
merge(mixed $value, mixed $base)

Merges dataset. Left has higher priority than right one.

static string
formatValue(mixed $value)

No description

static void
validateType(mixed $value, string $expected, Context $context)

No description

static void
validateRange(mixed $value, array $range, Context $context, string $types = '')

No description

static bool
isInRange(mixed $value, array $range)

No description

static void
validatePattern(string $value, string $pattern, Context $context)

No description

static Closure
getCastStrategy(string $type)

No description

Details

at line 28
static mixed merge(mixed $value, mixed $base)

Merges dataset. Left has higher priority than right one.

Parameters

mixed $value
mixed $base

Return Value

mixed

at line 57
static string formatValue(mixed $value)

No description

Parameters

mixed $value

Return Value

string

at line 73
static void validateType(mixed $value, string $expected, Context $context)

No description

Parameters

mixed $value
string $expected
Context $context

Return Value

void

at line 87
static void validateRange(mixed $value, array $range, Context $context, string $types = '')

No description

Parameters

mixed $value
array $range
Context $context
string $types

Return Value

void

at line 113
static bool isInRange(mixed $value, array $range)

No description

Parameters

mixed $value
array $range

Return Value

bool

at line 120
static void validatePattern(string $value, string $pattern, Context $context)

No description

Parameters

string $value
string $pattern
Context $context

Return Value

void

at line 132
static Closure getCastStrategy(string $type)

No description

Parameters

string $type

Return Value

Closure

Traits

StaticClass