/** * Retrieve the list of outstanding messages for display and clear them from the container * * @return Message[] */ public function clear() { return $this->session->get_once($this->session_key, array()); }