SnakeCache
The cache of snake-cased words.
Tags
Table of Contents
Properties
- $cache : array<string|int, mixed>
Methods
- flush() : void
- Flush the snake cache.
- get() : string|null
- Returns the specific snake value from the cache.
- has() : bool
- Indicates if the snake value is registered.
- set() : void
- Sets the snake value cache.
Properties
$cache
private
static array<string|int, mixed>
$cache
= []
Methods
flush()
Flush the snake cache.
public
static flush() : void
get()
Returns the specific snake value from the cache.
public
static get(string $key, string $delimiter) : string|null
Parameters
- $key : string
- $delimiter : string
Return values
string|nullhas()
Indicates if the snake value is registered.
public
static has(string $key, string $delimiter) : bool
Parameters
- $key : string
- $delimiter : string
Return values
boolset()
Sets the snake value cache.
public
static set(string $key, string $delimiter, string $value) : void
Parameters
- $key : string
- $delimiter : string
- $value : string