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;
    }
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;
    }
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 ; }
Create a stdClass object with filter data.

@param $reportDefinitionFields
@return \stdClass
Create a stdClass object with filter data .