public function getAll() {
		if ($this->hasAny()) {
			$messages = $_SESSION[self::SESSION_KEY_FLASH];

			$_SESSION[self::SESSION_KEY_FLASH] = [];

			return $messages;
		}
		else {
			return [];
		}
	}
public function getAll() {
		if ($this->hasAny()) {
			$messages = $_SESSION[self::SESSION_KEY_FLASH];

			$_SESSION[self::SESSION_KEY_FLASH] = [];

			return $messages;
		}
		else {
			return [];
		}
	}
public function getAll ( ) { if ( $ this -> hasAny ( ) ) { $ messages = $ _SESSION [ self :: SESSION_KEY_FLASH ] ; $ _SESSION [ self :: SESSION_KEY_FLASH ] = [ ] ; return $ messages ; } else { return [ ] ; } }
Retrieves and returns all messages available right now

@return string[] an array containing the messages indexed by their type
Retrieves and returns all messages available right now