original_string: private function createObj($reportDefinitionFields)
      {
          $obj = new \stdClass();
  
          foreach ($reportDefinitionFields as $reportDefinitionField) {
              $name = $reportDefinitionField->getFieldName();
              $obj->$name = [
                  'type' => $reportDefinitionField->getFieldType(),
                  'values' => ($reportDefinitionField->getEnumValues() !== null) ? $reportDefinitionField->getEnumValues() : null,
              ];
  
          }
  
          return $obj;
      }
code: private function createObj($reportDefinitionFields)
      {
          $obj = new \stdClass();
  
          foreach ($reportDefinitionFields as $reportDefinitionField) {
              $name = $reportDefinitionField->getFieldName();
              $obj->$name = [
                  'type' => $reportDefinitionField->getFieldType(),
                  'values' => ($reportDefinitionField->getEnumValues() !== null) ? $reportDefinitionField->getEnumValues() : null,
              ];
  
          }
  
          return $obj;
      }
code_tokens: private function createObj ( $ reportDefinitionFields ) { $ obj = new \ stdClass ( ) ; foreach ( $ reportDefinitionFields as $ reportDefinitionField ) { $ name = $ reportDefinitionField -> getFieldName ( ) ; $ obj -> $ name = [ 'type' => $ reportDefinitionField -> getFieldType ( ) , 'values' => ( $ reportDefinitionField -> getEnumValues ( ) !== null ) ? $ reportDefinitionField -> getEnumValues ( ) : null , ] ; } return $ obj ; }
docstring: Create a stdClass object with filter data.
  
  @param $reportDefinitionFields
  @return \stdClass
docstring_tokens: Create a stdClass object with filter data .