interface FlashBagInterface implements SessionBagInterface (View source)

Interface FlasgBagInterface

Methods

void
setData(array $data)

setData

mixed
get(string $key, mixed $default)

get

set(string $key, mixed $value)

set

bool
has(string $name)

has

array
all()

all

$this
add(string $msg, string $type = 'info')

add

array
takeAll()

Take all and clean.

array
getType(string $type)

getType

Details

void setData(array $data)

setData

Parameters

array $data

Return Value

void

mixed get(string $key, mixed $default)

get

Parameters

string $key
mixed $default

Return Value

mixed

SessionBagInterface set(string $key, mixed $value)

set

Parameters

string $key
mixed $value

Return Value

SessionBagInterface

bool has(string $name)

has

Parameters

string $name

Return Value

bool

array all()

all

Return Value

array

SessionBagInterface clear()

clean

Return Value

SessionBagInterface

at line line 24
$this add(string $msg, string $type = 'info')

add

Parameters

string $msg
string $type

Return Value

$this

at line line 31
array takeAll()

Take all and clean.

Return Value

array

at line line 40
array getType(string $type)

getType

Parameters

string $type

Return Value

array