PHP Interface Cache\Taggable\TaggableItemInterface

Author: Tobias Nyholm ([email protected])
Show file Open project: php-cache/cache Interface Usage Examples

Public Methods

Method Description
addTag ( string $tag ) Append a tag.
getTags ( ) : array Get an array with the tags.
setTags ( array $tags ) Replace the current tags with a new set of tags.

Method Details

addTag() public method

Append a tag.
public addTag ( string $tag )
$tag string

getTags() public method

Get an array with the tags.
public getTags ( ) : array
return array

setTags() public method

Replace the current tags with a new set of tags.
public setTags ( array $tags )
$tags array