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

null|string
getHash()

No description

void
setHash(null|string $hash)

No description

null|string
getFormat()

No description

void
setFormat(null|string $format)

No description

null|string
getFilename()

No description

void
setFilename(null|string $filename)

No description

bool
offsetExists(string $offset)

No description

StackUri|string|null
offsetGet(string $offset)

No description

offsetSet(string $offset, StackUri|string|null $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

null|string getHash()

Since: 1.2.0

No description

Return Value

null|string

void setHash(null|string $hash)

Since: 1.2.0

No description

Parameters

null|string $hash

Return Value

void

null|string getFormat()

Since: 1.2.0

No description

Return Value

null|string

void setFormat(null|string $format)

Since: 1.2.0

No description

Parameters

null|string $format

Return Value

void

null|string getFilename()

Since: 1.2.0

No description

Return Value

null|string

void setFilename(null|string $filename)

Since: 1.2.0

No description

Parameters

null|string $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|null $value)

No description

Parameters

string $offset
StackUri|string|null $value

void offsetUnset(string $offset)

No description

Parameters

string $offset

Return Value

void