original_string: public static function putMapping()
      {
          $instance = new static;
          $mapping = $instance->basicElasticParams();
          $params = array(
              '_source'       => array('enabled' => true),
              'properties'    => $instance->getMappingProperties()
          );
  
          $mapping['body'][$instance->getTypeName()] = $params;
  
          return $instance->getElasticClient()->indices()->putMapping($mapping);
      }
code: public static function putMapping()
      {
          $instance = new static;
          $mapping = $instance->basicElasticParams();
          $params = array(
              '_source'       => array('enabled' => true),
              'properties'    => $instance->getMappingProperties()
          );
  
          $mapping['body'][$instance->getTypeName()] = $params;
  
          return $instance->getElasticClient()->indices()->putMapping($mapping);
      }
code_tokens: public static function putMapping ( ) { $ instance = new static ; $ mapping = $ instance -> basicElasticParams ( ) ; $ params = array ( '_source' => array ( 'enabled' => true ) , 'properties' => $ instance -> getMappingProperties ( ) ) ; $ mapping [ 'body' ] [ $ instance -> getTypeName ( ) ] = $ params ; return $ instance -> getElasticClient ( ) -> indices ( ) -> putMapping ( $ mapping ) ; }
docstring: Puts mappings.
  
  @return array
docstring_tokens: Puts mappings .