App\Libraries\FlashLevel::getLevelName PHP Method

getLevelName() public static method

Gets the name of the flash level.
public static getLevelName ( integer $level ) : string
$level integer
return string
    public static function getLevelName($level)
    {
        if (!isset(static::$levels[$level])) {
            throw new InvalidArgumentException('Level "' . $level . '" is not defined, use one of: ' . implode(', ', array_keys(static::$levels)));
        }
        return static::$levels[$level];
    }