class SchemaPath implements Stringable

Methods

__construct(array $segments = [])

Create a path through object properties.

static SchemaPath
root()

Create the root path.

child(string $segment)

Create a path to the named child property.

mixed
valueIn(array $arguments)

Resolve this path in the supplied arguments.

string
__toString()

Convert the path to a JSON pointer.

Details

at line 17
__construct(array $segments = [])

Create a path through object properties.

Parameters

array $segments

at line 24
static SchemaPath root()

Create the root path.

Return Value

SchemaPath

at line 32
SchemaPath child(string $segment)

Create a path to the named child property.

Parameters

string $segment

Return Value

SchemaPath

at line 42
mixed valueIn(array $arguments)

Resolve this path in the supplied arguments.

Parameters

array $arguments

Return Value

mixed

at line 64
string __toString()

Convert the path to a JSON pointer.

Return Value

string