final class Helpers

internal  
 

Constants

PreventMerging

PREVENT_MERGING

Methods

static array|string
merge($value, $base)

Merges dataset. Left has higher priority than right one.

static string|null
getPropertyType(ReflectionProperty $prop)

No description

static string|null
parseAnnotation(Reflector $ref, string $name)

Returns an annotation value.

static string
formatValue(mixed $value)

No description

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

No description

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

No description

static bool
isInRange($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 31
static array|string merge($value, $base)

Merges dataset. Left has higher priority than right one.

Parameters

$value
$base

Return Value

array|string

at line 60
static string|null getPropertyType(ReflectionProperty $prop)

No description

Parameters

ReflectionProperty $prop

Return Value

string|null

at line 81
static string|null parseAnnotation(Reflector $ref, string $name)

Returns an annotation value.

Parameters

Reflector $ref
string $name

Return Value

string|null

at line 99
static string formatValue(mixed $value)

No description

Parameters

mixed $value

Return Value

string

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

No description

Parameters

$value
string $expected
Context $context

Return Value

void

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

No description

Parameters

$value
array $range
Context $context
string $types

Return Value

void

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

No description

Parameters

$value
array $range

Return Value

bool

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

No description

Parameters

string $value
string $pattern
Context $context

Return Value

void

at line 172
static Closure getCastStrategy(string $type)

No description

Parameters

string $type

Return Value

Closure

Traits

StaticClass