Documentation

TagSet
in package

Table of Contents

$names  : array<string|int, mixed>
The tag names.
$store  : Store
The cache store implementation.
__construct()  : void
Create a new TagSet instance.
getNames()  : array<string|int, mixed>
Get all of the tag names in the set.
getNamespace()  : string
Get a unique namespace that changes when any of the tags are flushed.
reset()  : void
Reset all tags in the set.
resetTag()  : string
Reset the tag and return the new tag identifier.
tagId()  : string
Get the unique tag identifier for a given tag.
tagKey()  : string
Get the tag identifier key for a given tag.
tagIds()  : array<string|int, mixed>
Get an array of tag identifiers for all of the tags in the set.

Properties

$names

The tag names.

protected array<string|int, mixed> $names = []

$store

The cache store implementation.

protected Store $store

Methods

__construct()

Create a new TagSet instance.

public __construct(Store $store[, array<string|int, mixed> $names = [] ]) : void
Parameters
$store : Store
$names : array<string|int, mixed> = []
Return values
void

getNames()

Get all of the tag names in the set.

public getNames() : array<string|int, mixed>
Return values
array<string|int, mixed>

getNamespace()

Get a unique namespace that changes when any of the tags are flushed.

public getNamespace() : string
Return values
string

reset()

Reset all tags in the set.

public reset() : void
Return values
void

resetTag()

Reset the tag and return the new tag identifier.

public resetTag(string $name) : string
Parameters
$name : string
Return values
string

tagId()

Get the unique tag identifier for a given tag.

public tagId(string $name) : string
Parameters
$name : string
Return values
string

tagKey()

Get the tag identifier key for a given tag.

public tagKey(string $name) : string
Parameters
$name : string
Return values
string

tagIds()

Get an array of tag identifiers for all of the tags in the set.

protected tagIds() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results