original_string: public function get_legacy_data_mapper_for_vault($entity) {
          switch($entity) {
              case 'forum':
                  return $this->get_forum_data_mapper();
              case 'discussion':
                  return $this->get_discussion_data_mapper();
              case 'post':
                  return $this->get_post_data_mapper();
              case 'author':
                  return $this->get_author_data_mapper();
          }
      }
code: public function get_legacy_data_mapper_for_vault($entity) {
          switch($entity) {
              case 'forum':
                  return $this->get_forum_data_mapper();
              case 'discussion':
                  return $this->get_discussion_data_mapper();
              case 'post':
                  return $this->get_post_data_mapper();
              case 'author':
                  return $this->get_author_data_mapper();
          }
      }
code_tokens: public function get_legacy_data_mapper_for_vault ( $ entity ) { switch ( $ entity ) { case 'forum' : return $ this -> get_forum_data_mapper ( ) ; case 'discussion' : return $ this -> get_discussion_data_mapper ( ) ; case 'post' : return $ this -> get_post_data_mapper ( ) ; case 'author' : return $ this -> get_author_data_mapper ( ) ; } }
docstring: Get the corresponding entity based on the supplied value
  
  @param string $entity
  @return author_data_mapper|discussion_data_mapper|forum_data_mapper|post_data_mapper
docstring_tokens: Get the corresponding entity based on the supplied value