private function getUseFiles(stdClass $data, bool $multiLanguage = false)
    {
        $output = '';

        $list = [];
        $list[] = [
            "nameSpace" => $data->modelNamespace,
            "name"      => $data->mainModel->modelName,
        ];

        if( $multiLanguage )
            $list[] = [
                "nameSpace" => $data->modelNamespace,
                "name"      => $data->mainModel->modelName . 'Translations',
            ];

        $list[] = [
            "nameSpace" => $data->formValidationNameSpace,
            "name"      => $data->formValidationName,
        ];

        if( isset($data->mainModel->multiLanguage) ) {

            $list[] = [
                "nameSpace" => $data->formValidationNameSpace,
                "name"      => $data->formTranslationsValidationName,
            ];
        }

        foreach ( $list as $key => $value )
            $output .= "\r\n" . 'use ' . $value['nameSpace'] . '\\' . $value['name'] . ';';

        return $output;
    }
private function getUseFiles(stdClass $data, bool $multiLanguage = false)
    {
        $output = '';

        $list = [];
        $list[] = [
            "nameSpace" => $data->modelNamespace,
            "name"      => $data->mainModel->modelName,
        ];

        if( $multiLanguage )
            $list[] = [
                "nameSpace" => $data->modelNamespace,
                "name"      => $data->mainModel->modelName . 'Translations',
            ];

        $list[] = [
            "nameSpace" => $data->formValidationNameSpace,
            "name"      => $data->formValidationName,
        ];

        if( isset($data->mainModel->multiLanguage) ) {

            $list[] = [
                "nameSpace" => $data->formValidationNameSpace,
                "name"      => $data->formTranslationsValidationName,
            ];
        }

        foreach ( $list as $key => $value )
            $output .= "\r\n" . 'use ' . $value['nameSpace'] . '\\' . $value['name'] . ';';

        return $output;
    }
private function getUseFiles ( stdClass $ data , bool $ multiLanguage = false ) { $ output = '' ; $ list = [ ] ; $ list [ ] = [ "nameSpace" => $ data -> modelNamespace , "name" => $ data -> mainModel -> modelName , ] ; if ( $ multiLanguage ) $ list [ ] = [ "nameSpace" => $ data -> modelNamespace , "name" => $ data -> mainModel -> modelName . 'Translations' , ] ; $ list [ ] = [ "nameSpace" => $ data -> formValidationNameSpace , "name" => $ data -> formValidationName , ] ; if ( isset ( $ data -> mainModel -> multiLanguage ) ) { $ list [ ] = [ "nameSpace" => $ data -> formValidationNameSpace , "name" => $ data -> formTranslationsValidationName , ] ; } foreach ( $ list as $ key => $ value ) $ output .= "\r\n" . 'use ' . $ value [ 'nameSpace' ] . '\\' . $ value [ 'name' ] . ';' ; return $ output ; }
get use files

@param stdClass $data
@param bool $multiLanguage
@return string
get use files