UniqueIdentifierGenerator
in package
AbstractYes
Utility class capable of generating unique valid class/property/method identifiers
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
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
public
static getIdentifier(string $name) : string
Parameters
- $name : string