Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 48 |
| RegularConsolidatedMarkListGenerator | |
0.00% |
0 / 1 |
|
0.00% |
0 / 3 |
240.00 | |
0.00% |
0 / 48 |
| __construct | |
0.00% |
0 / 1 |
182.00 | |
0.00% |
0 / 44 |
|||
| getConsolidatedMarkListResultData | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 2 |
|||
| processStudentSubjectDataForCourseFile | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 2 |
|||
| <?php | |
| namespace com\linways\ec\core\service\RegularConsolidatedMarkListGenerator; | |
| use com\linways\ec\core\service\StudentMarkListService; | |
| use com\linways\base\util\MakeSingletonTrait; | |
| use com\linways\ec\core\service\RegularConsolidatedMarkListGenerator\Template1ConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\RegularConsolidatedMarkListGenerator\Template2ConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\RegularConsolidatedMarkListGenerator\Template3ConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\RegularConsolidatedMarkListGenerator\Template4ConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\RegularConsolidatedMarkListGenerator\Template5ConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\RegularConsolidatedMarkListGenerator\Template6ConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\RegularConsolidatedMarkListGenerator\Template7ConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\RegularConsolidatedMarkListGenerator\Template15ConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\RegularConsolidatedMarkListGenerator\Template16ConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\RegularConsolidatedMarkListGenerator\Template9ConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\RegularConsolidatedMarkListGenerator\Template13ConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\RegularConsolidatedMarkListGenerator\Template20ConsolidatedResultGenerator; | |
| class RegularConsolidatedMarkListGenerator{ | |
| use MakeSingletonTrait; | |
| private $RegularConsolidatedMarkListResultDataGenerator; | |
| public function __construct(){ | |
| $examType = 'EC_REGULAR_CONSOLIDATED'; | |
| $markListTemplate = StudentMarkListService::getInstance()->getUniversityMarkListTemplate($examType); | |
| switch ($markListTemplate) { | |
| case 'Template_1': | |
| // MES VIMALA STJOSEPH Colleges | |
| $this->RegularConsolidatedMarkListResultDataGenerator = new Template1ConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_2': | |
| // Christ College | |
| $this->RegularConsolidatedMarkListResultDataGenerator = new Template2ConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_3': | |
| // SB College | |
| $this->RegularConsolidatedMarkListResultDataGenerator = new Template3ConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_4': | |
| // MA College | |
| $this->RegularConsolidatedMarkListResultDataGenerator = new Template4ConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_5': | |
| // MBCET Colleges | |
| $this->RegularConsolidatedMarkListResultDataGenerator = new Template5ConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_6': | |
| // SAINTGITS Colleges | |
| $this->RegularConsolidatedMarkListResultDataGenerator = new Template6ConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_7': | |
| // AIMIT SAC College | |
| $this->RegularConsolidatedMarkListResultDataGenerator = new Template7ConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_9': | |
| // SJC College | |
| $this->RegularConsolidatedMarkListResultDataGenerator = new Template9ConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_13': | |
| // Assumption Colleges | |
| $this->RegularConsolidatedMarkListResultDataGenerator = new Template13ConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_15': | |
| // CCM College | |
| $this->RegularConsolidatedMarkListResultDataGenerator = new Template15ConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_16': | |
| // SAINTGITS Colleges | |
| $this->RegularConsolidatedMarkListResultDataGenerator = new Template16ConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_20': | |
| // Presidency Colleges | |
| $this->RegularConsolidatedMarkListResultDataGenerator = new Template20ConsolidatedResultGenerator(); | |
| break; | |
| default: | |
| $this->RegularConsolidatedMarkListResultDataGenerator = new Template1ConsolidatedResultGenerator(); | |
| break; | |
| } | |
| } | |
| public function getConsolidatedMarkListResultData($request){ | |
| return $this->RegularConsolidatedMarkListResultDataGenerator->getConsolidatedMarkListResultData($request); | |
| } | |
| public function processStudentSubjectDataForCourseFile($request){ | |
| return $this->RegularConsolidatedMarkListResultDataGenerator->processStudentSubjectDataForCourseFile($request); | |
| } | |
| } | |