UriComponents
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.
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
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.
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.
StackUri
getStack()
Since: 1.2.0
No description
void
setStack(string|StackUri $stack)
Since: 1.2.0
No description
null|string
getHash()
Since: 1.2.0
No description
void
setHash(null|string $hash)
Since: 1.2.0
No description
null|string
getFormat()
Since: 1.2.0
No description
void
setFormat(null|string $format)
Since: 1.2.0
No description
null|string
getFilename()
Since: 1.2.0
No description
void
setFilename(null|string $filename)
Since: 1.2.0
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