abstract class Util

Static utility methods

Methods

static array
decodePointer(string $pointer)

Decode a JSON pointer to a path array

static string
encodePointer(array $path)

Encode a path array as a JSON pointer

static bool
compare(mixed $valueOne, mixed $valueTwo)

Compare two values for equality

Details

at line 25
static array decodePointer(string $pointer)

Decode a JSON pointer to a path array

Parameters

string $pointer JSON pointer

Return Value

array Array of path elements

at line 46
static string encodePointer(array $path)

Encode a path array as a JSON pointer

Parameters

array $path Array of path elements

Return Value

string JSON pointer

at line 63
static bool compare(mixed $valueOne, mixed $valueTwo)

Compare two values for equality

Parameters

mixed $valueOne
mixed $valueTwo

Return Value

bool