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 / 31
RegularTabulationRegisterGenerator
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 2
90.00
0.00% covered (danger)
0.00%
0 / 31
 __construct
0.00% covered (danger)
0.00%
0 / 1
72.00
0.00% covered (danger)
0.00%
0 / 29
 getRegularTabulationRegisterResultData
0.00% covered (danger)
0.00%
0 / 1
2.00
0.00% covered (danger)
0.00%
0 / 2
<?php
namespace com\linways\ec\core\service\RegularTabulationRegisterGenerator;
use com\linways\ec\core\service\StudentMarkListService;
use com\linways\base\util\MakeSingletonTrait;
use com\linways\ec\core\service\RegularTabulationRegisterGenerator\Template1RegularTabulationRegisterGenerator;
use com\linways\ec\core\service\RegularTabulationRegisterGenerator\Template2RegularTabulationRegisterGenerator;
use com\linways\ec\core\service\RegularTabulationRegisterGenerator\Template6RegularTabulationRegisterGenerator;
use com\linways\ec\core\service\RegularTabulationRegisterGenerator\Template14RegularTabulationRegisterGenerator;
use com\linways\ec\core\service\RegularTabulationRegisterGenerator\Template13RegularTabulationRegisterGenerator;
use com\linways\ec\core\service\RegularTabulationRegisterGenerator\Template9RegularTabulationRegisterGenerator;
use com\linways\ec\core\service\RegularTabulationRegisterGenerator\Template15RegularTabulationRegisterGenerator;
class RegularTabulationRegisterGenerator{
    use MakeSingletonTrait;
    private $RegularTabulationRegisterResultDataGenerator;
    public function __construct(){
        $examType = 'EC_REGULAR_TR';
        $markListTemplate = StudentMarkListService::getInstance()->getUniversityMarkListTemplate($examType);
        switch ($markListTemplate) {
            case 'Template_1': 
                // MES VIMALA STJOSEPH Colleges
                $this->RegularTabulationRegisterResultDataGenerator = new Template1RegularTabulationRegisterGenerator();
                break;
            case 'Template_2': 
                // For CHRIST Colleges
                $this->RegularTabulationRegisterResultDataGenerator = new Template2RegularTabulationRegisterGenerator();
                break;
            case 'Template_6': 
                // For SCEK Colleges
                $this->RegularTabulationRegisterResultDataGenerator = new Template6RegularTabulationRegisterGenerator();
                break;
            case 'Template_9': 
                // For SJC Colleges
                $this->RegularTabulationRegisterResultDataGenerator = new Template9RegularTabulationRegisterGenerator();
                break;
            case 'Template_14': 
                // For IAGI Colleges
                $this->RegularTabulationRegisterResultDataGenerator = new Template14RegularTabulationRegisterGenerator();
                break;
            case 'Template_13': 
                // For ASSUMPTION Colleges
                $this->RegularTabulationRegisterResultDataGenerator = new Template13RegularTabulationRegisterGenerator();
                break;
            case 'Template_15': 
                // For CCM Colleges
                $this->RegularTabulationRegisterResultDataGenerator = new Template15RegularTabulationRegisterGenerator();
                break;
            default:
                $this->RegularTabulationRegisterResultDataGenerator = new Template2RegularTabulationRegisterGenerator();
                break;
        }
    }
    public function getRegularTabulationRegisterResultData($request){
        return $this->RegularTabulationRegisterResultDataGenerator->getRegularTabulationRegisterResultData($request);
    }
   
}