original_string: public function getMessage(): array
      {
          if (!empty($this->message)) {
              return $this->message;
          }
  
          try {
              $message = XML::parse(strval($this->app['request']->getContent()));
          } catch (\Throwable $e) {
              throw new Exception('Invalid request XML: '.$e->getMessage(), 400);
          }
  
          if (!is_array($message) || empty($message)) {
              throw new Exception('Invalid request XML.', 400);
          }
  
          if ($this->check) {
              $this->validate($message);
          }
  
          return $this->message = $message;
      }
code: public function getMessage(): array
      {
          if (!empty($this->message)) {
              return $this->message;
          }
  
          try {
              $message = XML::parse(strval($this->app['request']->getContent()));
          } catch (\Throwable $e) {
              throw new Exception('Invalid request XML: '.$e->getMessage(), 400);
          }
  
          if (!is_array($message) || empty($message)) {
              throw new Exception('Invalid request XML.', 400);
          }
  
          if ($this->check) {
              $this->validate($message);
          }
  
          return $this->message = $message;
      }
code_tokens: public function getMessage ( ) : array { if ( ! empty ( $ this -> message ) ) { return $ this -> message ; } try { $ message = XML :: parse ( strval ( $ this -> app [ 'request' ] -> getContent ( ) ) ) ; } catch ( \ Throwable $ e ) { throw new Exception ( 'Invalid request XML: ' . $ e -> getMessage ( ) , 400 ) ; } if ( ! is_array ( $ message ) || empty ( $ message ) ) { throw new Exception ( 'Invalid request XML.' , 400 ) ; } if ( $ this -> check ) { $ this -> validate ( $ message ) ; } return $ this -> message = $ message ; }
docstring: Return the notify message from request.
  
  @return array
  
  @throws \EasyWeChat\Kernel\Exceptions\Exception
docstring_tokens: Return the notify message from request .