original_string: public function get_endorsement() {
          global $DB;
          $endorsement = array();
          $record = $DB->get_record_select('badge_endorsement', 'badgeid = ?', array($this->_data->id));
          return $record;
      }
code: public function get_endorsement() {
          global $DB;
          $endorsement = array();
          $record = $DB->get_record_select('badge_endorsement', 'badgeid = ?', array($this->_data->id));
          return $record;
      }
code_tokens: public function get_endorsement ( ) { global $ DB ; $ endorsement = array ( ) ; $ record = $ DB -> get_record_select ( 'badge_endorsement' , 'badgeid = ?' , array ( $ this -> _data -> id ) ) ; return $ record ; }
docstring: Get endorsement of the badge.
  
  @return false|stdClass Endorsement information.
docstring_tokens: Get endorsement of the badge .