\App\Api\DataFlashMessages

Class containing flash messages from the session.

It can be converted to an array passable to frontend.

Summary

Methods
Properties
Constants
__construct()
clearSession()
toPassable()
$messages
TYPES
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

TYPES

TYPES

Frontend message type list

Properties

$messages

$messages : 

Type

Methods

__construct()

__construct() 

FlashMessages constructor.

clearSession()

clearSession() 

Removes all flash messages from session

toPassable()

toPassable() : array|\stdClass|\JsonSerializable

Returns a serializable representation of the object.

(see the return types of this function)

Returns

array|\stdClass|\JsonSerializable