Oihana PHP

SnakeCache

The cache of snake-cased words.

Tags
author

Marc Alcaraz (ekameleon)

since
1.0.0

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|null

has()

Indicates if the snake value is registered.

public static has(string $key, string $delimiter) : bool
Parameters
$key : string
$delimiter : string
Return values
bool

set()

Sets the snake value cache.

public static set(string $key, string $delimiter, string $value) : void
Parameters
$key : string
$delimiter : string
$value : string

        
On this page

Search results