Pelzini

This is the code documentation for the Pelzini project

file /processor/virtual_enumerations_transformer.php

Namespace: processor

Available since:

View source


Contains the VirtualEnumerationsTransformer class

Authors

Classes

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.

Functions