IdentifierSuffixer
in package
AbstractYes
Utility class capable of generating valid class/property/method identifiers with a deterministic attached suffix, in order to prevent property name collisions and tampering from userland
Table of Contents
Constants
- DEFAULT_IDENTIFIER = 'g'
- VALID_IDENTIFIER_FORMAT = '/^[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]+$/'
Methods
- getIdentifier() : string
- Generates a valid unique identifier from the given name, with a suffix attached to it
- __construct() : mixed
- loadBaseHashSalt() : string
Constants
DEFAULT_IDENTIFIER
public
mixed
DEFAULT_IDENTIFIER
= 'g'
VALID_IDENTIFIER_FORMAT
public
mixed
VALID_IDENTIFIER_FORMAT
= '/^[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]+$/'
Methods
getIdentifier()
Generates a valid unique identifier from the given name, with a suffix attached to it
public
static getIdentifier(string $name) : string
Parameters
- $name : string
Return values
string__construct()
private
final __construct() : mixed
loadBaseHashSalt()
private
static loadBaseHashSalt() : string