Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 53
MarkMigrationGenerator
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 2
272.00
0.00% covered (danger)
0.00%
0 / 53
 __construct
0.00% covered (danger)
0.00%
0 / 1
2.00
0.00% covered (danger)
0.00%
0 / 1
 getConsolidatedMarkListResultData
0.00% covered (danger)
0.00%
0 / 1
240.00
0.00% covered (danger)
0.00%
0 / 52
<?php
namespace com\linways\ec\core\service\MarkMigrationGenerator;
use com\linways\base\util\MakeSingletonTrait;
use com\linways\ec\core\service\MarkMigrationGenerator\Template1MigrationdResultGenerator;
use com\linways\ec\core\service\MarkMigrationGenerator\Template2MigrationdResultGenerator;
use com\linways\ec\core\service\MarkMigrationGenerator\Template3MigrationdResultGenerator;
use com\linways\ec\core\service\MarkMigrationGenerator\Template5MigrationdResultGenerator;
use com\linways\ec\core\service\MarkMigrationGenerator\Template6MigrationdResultGenerator;
use com\linways\ec\core\service\MarkMigrationGenerator\Template11MigrationdResultGenerator;
use com\linways\ec\core\service\MarkMigrationGenerator\Template12MigrationdResultGenerator;
use com\linways\ec\core\service\MarkMigrationGenerator\Template13MigrationdResultGenerator;
use com\linways\ec\core\service\MarkMigrationGenerator\Template14MigrationdResultGenerator;
use com\linways\ec\core\service\MarkMigrationGenerator\Template15MigrationdResultGenerator;
use com\linways\ec\core\service\MarkMigrationGenerator\Template16MigrationdResultGenerator;
use com\linways\ec\core\service\MarkMigrationGenerator\Template9MigrationdResultGenerator;
use com\linways\ec\core\service\MarkMigrationGenerator\Template20MigrationdResultGenerator;
use com\linways\ec\core\service\MarkMigrationGenerator\Template22MigrationdResultGenerator;
use com\linways\core\ams\professional\service\CommonService;
use com\linways\core\ams\professional\dto\SettingsConstents;
use com\linways\ec\core\service\StudentMarkListService;
class MarkMigrationGenerator{
    use MakeSingletonTrait;
    private $MarkMigrationResultDataGenerator;
    public function __construct(){
    }
    public function getConsolidatedMarkListResultData($request){
        $this->MarkMigrationResultDataGenerator = null;
        $examType = 'MARK_MIGRATION_TEMPLATE';
        $migrationTemplate = StudentMarkListService::getInstance()->getUniversityMarkListTemplate($examType);
        switch ($migrationTemplate) {
            case 'Template_1': 
                // VIMALA
                $this->MarkMigrationResultDataGenerator = new Template1MigrationdResultGenerator();
                break;
            case 'Template_2': 
                // CHRISTIJK
                $this->MarkMigrationResultDataGenerator = new Template2MigrationdResultGenerator();
                break;
            case 'Template_3': 
                //SB COLLEGE
                $this->MarkMigrationResultDataGenerator = new Template3MigrationdResultGenerator();
                break;
            case 'Template_5': 
                //MBCET
                $this->MarkMigrationResultDataGenerator = new Template5MigrationdResultGenerator();
                break;
            case 'Template_6': 
                //SCEK
                $this->MarkMigrationResultDataGenerator = new Template6MigrationdResultGenerator();
                break;
            case 'Template_9': 
                //SCEK
                $this->MarkMigrationResultDataGenerator = new Template9MigrationdResultGenerator();
                break;
            case 'Template_11': 
                //CHSDT
                $this->MarkMigrationResultDataGenerator = new Template11MigrationdResultGenerator();
                break;
            case 'Template_12': 
                //CHSDT
                $this->MarkMigrationResultDataGenerator = new Template12MigrationdResultGenerator();
                break;
            case 'Template_13': 
                //ASMPTN
                $this->MarkMigrationResultDataGenerator = new Template13MigrationdResultGenerator();
                break;
            case 'Template_14': 
                //IAGI
                $this->MarkMigrationResultDataGenerator = new Template14MigrationdResultGenerator();
                break;
            case 'Template_15': 
                //CCM
                $this->MarkMigrationResultDataGenerator = new Template15MigrationdResultGenerator();
                break;
            case 'Template_16': 
                //VES
                $this->MarkMigrationResultDataGenerator = new Template16MigrationdResultGenerator();
                break;
            case 'Template_20':
                //Presidency College
                $this->MarkMigrationResultDataGenerator = new Template20MigrationdResultGenerator();
                break;
            case 'Template_22':
                //STCP
                $this->MarkMigrationResultDataGenerator = new Template22MigrationdResultGenerator();
                break;
            default:
                $this->MarkMigrationResultDataGenerator = new Template1MigrationdResultGenerator();
                break;
        }
        return $this->MarkMigrationResultDataGenerator->getConsolidatedMarkListResultData($request);
    }
   
}