Since: 1.2.0

class UriComponents implements ArrayAccess (View source)

Class UriComponents.

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 
createFromArray($config)

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

getStack()

No description

setStack(string|StackUri $stack)

No description

null|string
getHash()

No description

setHash(null|string $hash)

No description

null|string
getFormat()

No description

setFormat(null|string $format)

No description

null|string
getFilename()

No description

setFilename(null|string $filename)

No description

offsetExists($offset)

No description

offsetGet($offset)

No description

offsetSet($offset, $value)

No description

offsetUnset($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 createFromArray($config)

Since: 1.2.0

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

Parameters

$config

StackUri getStack()

Since: 1.2.0

No description

Return Value

StackUri

setStack(string|StackUri $stack)

Since: 1.2.0

No description

Parameters

string|StackUri $stack

Exceptions

RuntimeException

null|string getHash()

Since: 1.2.0

No description

Return Value

null|string

setHash(null|string $hash)

Since: 1.2.0

No description

Parameters

null|string $hash

null|string getFormat()

Since: 1.2.0

No description

Return Value

null|string

setFormat(null|string $format)

Since: 1.2.0

No description

Parameters

null|string $format

null|string getFilename()

Since: 1.2.0

No description

Return Value

null|string

setFilename(null|string $filename)

Since: 1.2.0

No description

Parameters

null|string $filename

offsetExists($offset)

No description

Parameters

$offset

offsetGet($offset)

No description

Parameters

$offset

offsetSet($offset, $value)

No description

Parameters

$offset
$value

offsetUnset($offset)

No description

Parameters

$offset