original_string: public static function get_self_conversation(int $userid) {
          global $DB;
  
          $conditions = [
              'type' => self::MESSAGE_CONVERSATION_TYPE_SELF,
              'convhash' => helper::get_conversation_hash([$userid])
          ];
          return $DB->get_record('message_conversations', $conditions);
      }
code: public static function get_self_conversation(int $userid) {
          global $DB;
  
          $conditions = [
              'type' => self::MESSAGE_CONVERSATION_TYPE_SELF,
              'convhash' => helper::get_conversation_hash([$userid])
          ];
          return $DB->get_record('message_conversations', $conditions);
      }
code_tokens: public static function get_self_conversation ( int $ userid ) { global $ DB ; $ conditions = [ 'type' => self :: MESSAGE_CONVERSATION_TYPE_SELF , 'convhash' => helper :: get_conversation_hash ( [ $ userid ] ) ] ; return $ DB -> get_record ( 'message_conversations' , $ conditions ) ; }
docstring: Returns the self conversation for a user.
  
  @param int $userid The user id to get the self-conversations
  @return \stdClass|false The self-conversation object or false if it doesn't exist
  @since Moodle 3.7
docstring_tokens: Returns the self conversation for a user .