PHP Class App\Libraries\FlashLevel

Show file Open project: sroutier/laravel-5.1-enterprise-starter-kit

Protected Properties

Property Type Description
$levels array Flash levels

Public Methods

Method Description
getLevelName ( integer $level ) : string Gets the name of the flash level.
getLevels ( ) : array Gets all supported flash levels.

Method Details

getLevelName() public static method

Gets the name of the flash level.
public static getLevelName ( integer $level ) : string
$level integer
return string

getLevels() public static method

Gets all supported flash levels.
public static getLevels ( ) : array
return array Assoc array with human-readable level names => level codes.

Property Details

$levels protected static property

Flash levels
protected static array $levels
return array