class VirtualEnumerationsTransformer
This transformer converts constants that start with the same name into an enumeration of that name.
So if a file has the following constants:
APP_VERSION
ITEM_TYPE_APPLE
ITEM_TYPE_ORANGE
The APPLE and ORANGE constants will become a part of the virtual enumeration ITEM_TYPE. AuthorsFunctions
void $VirtualEnumerationsTransformer->__construct ( ); This function does not have a descriptionunknown $VirtualEnumerationsTransformer->createVirtualEnum ( mixed $name );
Creates an enum unknown $VirtualEnumerationsTransformer->numSimilarChars ( mixed $a , mixed $b );
Returns the number of chars in $a that are the same as the chars in $b void $VirtualEnumerationsTransformer->processConstants ( ParserFile $file );
Processes constants for a specified file array $VirtualEnumerationsTransformer->transform ( array &$parser_model );
Transforms the data model before outputting.
This transformer converts constants that start with the same name into an enumeration of that name.
|