public function getMessages($removeOnGet = false){
	$messages = $this->session->get("FlashInSession", []);
	if($removeOnGet){
	    $this->clear();
	}
	return $messages;
    }
public function getMessages($removeOnGet = false){
	$messages = $this->session->get("FlashInSession", []);
	if($removeOnGet){
	    $this->clear();
	}
	return $messages;
    }
public function getMessages ( $ removeOnGet = false ) { $ messages = $ this -> session -> get ( "FlashInSession" , [ ] ) ; if ( $ removeOnGet ) { $ this -> clear ( ) ; } return $ messages ; }
Retrievs all stored messages.
@param $removeOnGet boolean If the messages should be removed.
@return array with all the stored messages
Retrievs all stored messages .