Documentation

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

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
Tags
psalm-return

class-string

psalm-suppress

MoreSpecificReturnType

Return values
string

        
On this page

Search results