public static function eventName($event)
    {
        static $constants = null;

        if (is_null($constants)) {
            $class = new \ReflectionClass('Resque\Event');

            $constants = array();
            foreach ($class->getConstants() as $name => $value) {
                $constants[$value] = strtolower($name);
            }
        }

        return isset($constants[$event]) ? $constants[$event] : false;
    }
public static function eventName($event)
    {
        static $constants = null;

        if (is_null($constants)) {
            $class = new \ReflectionClass('Resque\Event');

            $constants = array();
            foreach ($class->getConstants() as $name => $value) {
                $constants[$value] = strtolower($name);
            }
        }

        return isset($constants[$event]) ? $constants[$event] : false;
    }
public static function eventName ( $ event ) { static $ constants = null ; if ( is_null ( $ constants ) ) { $ class = new \ ReflectionClass ( 'Resque\Event' ) ; $ constants = array ( ) ; foreach ( $ class -> getConstants ( ) as $ name => $ value ) { $ constants [ $ value ] = strtolower ( $ name ) ; } } return isset ( $ constants [ $ event ] ) ? $ constants [ $ event ] : false ; }
Returns the name of the given event from constant

@param  int          $event Event constant
@return string|false
Returns the name of the given event from constant