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.
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
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
string|null
getHash()
Since: 1.2.0
No description
void
setHash(string|null $hash)
Since: 1.2.0
No description
string|null
getFormat()
Since: 1.2.0
No description
void
setFormat(string|null $format)
Since: 1.2.0
No description
string|null
getFilename()
Since: 1.2.0
No description
void
setFilename(string|null $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 $value)
No description
void
offsetUnset(string $offset)
No description