public static function getNameForValue($value)
    {
        foreach (self::getConstants() as $constant) {
            if ($constant['value'] === $value) {
                return $constant['name'];
            }
        }
        return false;
    }
public static function getNameForValue($value)
    {
        foreach (self::getConstants() as $constant) {
            if ($constant['value'] === $value) {
                return $constant['name'];
            }
        }
        return false;
    }
public static function getNameForValue ( $ value ) { foreach ( self :: getConstants ( ) as $ constant ) { if ( $ constant [ 'value' ] === $ value ) { return $ constant [ 'name' ] ; } } return false ; }
Get the descriptive name for the given value.

@param int|string $value The value to get the name of a constant for.
@return bool|string
Get the descriptive name for the given value .