Helpers
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|null
getPropertyType(ReflectionProperty|ReflectionParameter $prop)
No description
static string|null
static string
formatValue(mixed $value)
No description
static void
static void
static bool
isInRange(mixed $value, array $range)
No description
static void
static Closure
getCastStrategy(string $type)
No description
Details
at line 30
static mixed
merge(mixed $value, mixed $base)
Merges dataset. Left has higher priority than right one.
at line 59
static string|null
getPropertyType(ReflectionProperty|ReflectionParameter $prop)
No description
at line 79
static string|null
parseAnnotation(Reflector $ref, string $name)
Returns an annotation value.
at line 94
static string
formatValue(mixed $value)
No description
at line 110
static void
validateType(mixed $value, string $expected, Context $context)
No description
at line 124
static void
validateRange(mixed $value, array $range, Context $context, string $types = '')
No description
at line 150
static bool
isInRange(mixed $value, array $range)
No description
at line 157
static void
validatePattern(string $value, string $pattern, Context $context)
No description
at line 169
static Closure
getCastStrategy(string $type)
No description
Traits
StaticClass