| 
<?php
/**
 * To include an eumeration into a generated documentation, and enable
 * autocomplete in an IDE you can document a fake class that
 * is never loaded.
 */
 namespace Geo;
 require '../class/Co3/CodeGen/Enum.php';
 use Co3\CodeGen\Enum as Enum;
 
 if(0){//unreachable code
 /**
 * An Enumeration of geographical directions
 * Members: North,East,South,West
 */
 class Direction extends Enum{
 const North=0,East=1,South=2,West=3;
 }
 }
 //real code
 Enum::create('Geo\Direction',array('North','East','South','West'));
 
 |