Since: 1.2.0

class UriComponents implements ArrayAccess (View source)

Abstracts the components away of a rokka uri (hash, format, filename, stack, etc).

Methods

__construct(StackUri|string $stack, string|null $hash = null, string|null $format = null, string|null $filename = null)

StackUriComponents constructor.

static UriComponents
createFromArray(mixed $config)

Creates a UriComponent object from an array with 'stack', 'hash', 'format', 'filename' and 'stack' as keys.

getStack()

No description

void
setStack(string|StackUri $stack)

No description

string|null
getHash()

No description

void
setHash(string|null $hash)

No description

string|null
getFormat()

No description

void
setFormat(string|null $format)

No description

string|null
getFilename()

No description

void
setFilename(string|null $filename)

No description

bool
offsetExists(string $offset)

No description

StackUri|string|null
offsetGet(string $offset)

No description

offsetSet(string $offset, StackUri|string $value)

No description

void
offsetUnset(string $offset)

No description

Details

__construct(StackUri|string $stack, string|null $hash = null, string|null $format = null, string|null $filename = null)

Since: 1.2.0

StackUriComponents constructor.

Parameters

StackUri|string $stack
string|null $hash
string|null $format
string|null $filename

static UriComponents createFromArray(mixed $config)

Since: 1.2.0

Creates a UriComponent object from an array with 'stack', 'hash', 'format', 'filename' and 'stack' as keys.

Parameters

mixed $config

Return Value

UriComponents

StackUri getStack()

Since: 1.2.0

No description

Return Value

StackUri

void setStack(string|StackUri $stack)

Since: 1.2.0

No description

Parameters

string|StackUri $stack

Return Value

void

Exceptions

RuntimeException

string|null getHash()

Since: 1.2.0

No description

Return Value

string|null

void setHash(string|null $hash)

Since: 1.2.0

No description

Parameters

string|null $hash

Return Value

void

string|null getFormat()

Since: 1.2.0

No description

Return Value

string|null

void setFormat(string|null $format)

Since: 1.2.0

No description

Parameters

string|null $format

Return Value

void

string|null getFilename()

Since: 1.2.0

No description

Return Value

string|null

void setFilename(string|null $filename)

Since: 1.2.0

No description

Parameters

string|null $filename

Return Value

void

bool offsetExists(string $offset)

No description

Parameters

string $offset

Return Value

bool

StackUri|string|null offsetGet(string $offset)

No description

Parameters

string $offset

Return Value

StackUri|string|null

offsetSet(string $offset, StackUri|string $value)

No description

Parameters

string $offset
StackUri|string $value

void offsetUnset(string $offset)

No description

Parameters

string $offset

Return Value

void