final class Describer

internal  
 

Converts PHP values to internal representation.

Constants

HiddenValue

private JsSafeInteger

Properties

$maxDepth
$maxLength
$maxItems
Value[] $snapshot
$debugInfo
$keysToHide
$scrubber
$location
callable[] $resourceExposers
array<string,callable> $objectExposers
$enumProperties
(int|stdClass)[] $references

Methods

describe(mixed $var)

No description

Value|string
describeKey(string $key)

No description

void
addPropertyTo(Value $value, string $k, mixed $v, int $type = Value::PropertyVirtual, int|null $refId = null, string|null $class = null, Value|null $described = null)

No description

Value|null
describeEnumProperty(string $class, string $property, mixed $value)

No description

int|null
getReferenceId(array $arr, string|int $key)

No description

Details

at line 54
stdClass describe(mixed $var)

No description

Parameters

mixed $var

Return Value

stdClass

at line 222
Value|string describeKey(string $key)

No description

Parameters

string $key

Return Value

Value|string

at line 235
void addPropertyTo(Value $value, string $k, mixed $v, int $type = Value::PropertyVirtual, int|null $refId = null, string|null $class = null, Value|null $described = null)

No description

Parameters

Value $value
string $k
mixed $v
int $type
int|null $refId
string|null $class
Value|null $described

Return Value

void

at line 297
Value|null describeEnumProperty(string $class, string $property, mixed $value)

No description

Parameters

string $class
string $property
mixed $value

Return Value

Value|null

at line 312
int|null getReferenceId(array $arr, string|int $key)

No description

Parameters

array $arr
string|int $key

Return Value

int|null