original_string: protected function readFromSession()
      {
          if (is_array($this->session->get(self::SESSION_KEY))) {
              $this->messages = $this->session->get(self::SESSION_KEY);
          }
          return $this;
      }
code: protected function readFromSession()
      {
          if (is_array($this->session->get(self::SESSION_KEY))) {
              $this->messages = $this->session->get(self::SESSION_KEY);
          }
          return $this;
      }
code_tokens: protected function readFromSession ( ) { if ( is_array ( $ this -> session -> get ( self :: SESSION_KEY ) ) ) { $ this -> messages = $ this -> session -> get ( self :: SESSION_KEY ) ; } return $ this ; }
docstring: Read messages stored in the session and load them into SessionMessage.
  
  @return $this
docstring_tokens: Read messages stored in the session and load them into SessionMessage .