/** * This method returns the token at the specified ordinal index. * * @access protected * @static * @param integer $ordinal the ordinal index of the token * @return Core\Enum the token */ protected static function __enum($ordinal) { if (!is_array(static::$__enums)) { static::$__enums = array(); static::$__enums[] = new static('canonical', 'Canonical'); static::$__enums[] = new static('model', 'Model'); } return static::$__enums[$ordinal]; }
/** * This method returns the token at the specified ordinal index. * * @access protected * @static * @param integer $ordinal the ordinal index of the token * @return Core\Enum the token */ protected static function __enum($ordinal) { if (!is_array(static::$__enums)) { static::$__enums = array(); static::$__enums[] = new static('normal', 'normal'); static::$__enums[] = new static('goal', 'goal'); } return static::$__enums[$ordinal]; }
/** * This method returns the token at the specified ordinal index. * * @access protected * @static * @param integer $ordinal the ordinal index of the token * @return Core\Enum the token */ protected static function __enum($ordinal) { if (!is_array(static::$__enums)) { static::$__enums = array(); static::$__enums[] = new AOP\AdviceType('before', 'Before'); static::$__enums[] = new AOP\AdviceType('afterReturning', 'AfterReturning'); static::$__enums[] = new AOP\AdviceType('afterThrowing', 'AfterThrowing'); static::$__enums[] = new AOP\AdviceType('after', 'After'); static::$__enums[] = new AOP\AdviceType('around', 'Around'); } return static::$__enums[$ordinal]; }
/** * This method returns the token at the specified ordinal index. * * @access public * @static * @param integer $ordinal the ordinal index of the token * @return Core\Enum the token */ public static function __enum($ordinal) { if (!is_array(static::$__enums)) { static::$__enums = array(); static::$__enums[LOG_EMERG] = new Log\Level('Emergency', 'Emergency: system is unusable'); static::$__enums[LOG_ALERT] = new Log\Level('Alert', 'Alert: action must be taken immediately'); static::$__enums[LOG_CRIT] = new Log\Level('Critical', 'Critical: critical conditions'); static::$__enums[LOG_ERR] = new Log\Level('Error', 'Error: error conditions'); static::$__enums[LOG_WARNING] = new Log\Level('Warning', 'Warning: warning conditions'); static::$__enums[LOG_NOTICE] = new Log\Level('Notice', 'Notice: normal but significant condition'); static::$__enums[LOG_INFO] = new Log\Level('Informational', 'Informational: informational messages'); static::$__enums[LOG_DEBUG] = new Log\Level('Debug', 'Debug: debug-level messages'); } return static::$__enums[$ordinal]; }
/** * This method returns the token at the specified ordinal index. * * @access protected * @static * @param integer $ordinal the ordinal index of the token * @return Core\Enum the token */ protected static function __enum($ordinal) { if (!is_array(static::$__enums)) { static::$__enums = array(); static::$__enums[] = new static('delimiter', 'DELIMITER'); static::$__enums[] = new static('dot', 'DOT'); static::$__enums[] = new static('error', 'ERROR'); static::$__enums[] = new static('hexadecimal', 'HEXADECIMAL'); static::$__enums[] = new static('identifier', 'IDENTIFIER'); static::$__enums[] = new static('integer', 'NUMBER:INTEGER'); static::$__enums[] = new static('keyword', 'KEYWORD'); static::$__enums[] = new static('literal', 'LITERAL'); static::$__enums[] = new static('operator', 'OPERATOR'); static::$__enums[] = new static('parameter', 'PARAMETER'); static::$__enums[] = new static('real', 'NUMBER:REAL'); static::$__enums[] = new static('symbol', 'SYMBOL'); static::$__enums[] = new static('terminal', 'TERMINAL'); static::$__enums[] = new static('unknown', 'UNKNOWN'); static::$__enums[] = new static('whitespace', 'WHITESPACE'); } return static::$__enums[$ordinal]; }