Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 40 |
| SupplementaryConsolidatedMarkListGenerator | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
156.00 | |
0.00% |
0 / 40 |
| __construct | |
0.00% |
0 / 1 |
132.00 | |
0.00% |
0 / 38 |
|||
| getConsolidatedMarkListResultData | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 2 |
|||
| <?php | |
| namespace com\linways\ec\core\service\SupplementaryConsolidatedMarkListGenerator; | |
| use com\linways\ec\core\service\StudentMarkListService; | |
| use com\linways\base\util\MakeSingletonTrait; | |
| use com\linways\ec\core\service\SupplementaryConsolidatedMarkListGenerator\Template1SupplementaryConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryConsolidatedMarkListGenerator\Template2SupplementaryConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryConsolidatedMarkListGenerator\Template3SupplementaryConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryConsolidatedMarkListGenerator\Template4SupplementaryConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryConsolidatedMarkListGenerator\Template5SupplementaryConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryConsolidatedMarkListGenerator\Template6SupplementaryConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryConsolidatedMarkListGenerator\Template16SupplementaryConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryConsolidatedMarkListGenerator\Template15SupplementaryConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryConsolidatedMarkListGenerator\Template9SupplementaryConsolidatedResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryConsolidatedMarkListGenerator\Template20SupplementaryConsolidatedResultGenerator; | |
| class SupplementaryConsolidatedMarkListGenerator{ | |
| use MakeSingletonTrait; | |
| private $SupplementaryConsolidatedMarkListResultDataGenerator; | |
| public function __construct(){ | |
| $examType = 'EC_SUPPLEMENTARY_CONSOLIDATED'; | |
| $markListTemplate = StudentMarkListService::getInstance()->getUniversityMarkListTemplate($examType); | |
| switch ($markListTemplate) { | |
| case 'Template_1': | |
| // MES VIMALA STJOSEPH Colleges | |
| $this->SupplementaryConsolidatedMarkListResultDataGenerator = new Template1SupplementaryConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_2': | |
| // Christ College | |
| $this->SupplementaryConsolidatedMarkListResultDataGenerator = new Template2SupplementaryConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_3': | |
| // SB College | |
| $this->SupplementaryConsolidatedMarkListResultDataGenerator = new Template3SupplementaryConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_4': | |
| // MA College | |
| $this->SupplementaryConsolidatedMarkListResultDataGenerator = new Template4SupplementaryConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_5': | |
| // MBCET Colleges | |
| $this->SupplementaryConsolidatedMarkListResultDataGenerator = new Template5SupplementaryConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_6': | |
| // SAINTGITS Colleges | |
| $this->SupplementaryConsolidatedMarkListResultDataGenerator = new Template6SupplementaryConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_9': | |
| // SJC Colleges | |
| $this->SupplementaryConsolidatedMarkListResultDataGenerator = new Template9SupplementaryConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_15': | |
| // Carmel Mala Colleges | |
| $this->SupplementaryConsolidatedMarkListResultDataGenerator = new Template15SupplementaryConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_16': | |
| // VES Colleges | |
| $this->SupplementaryConsolidatedMarkListResultDataGenerator = new Template16SupplementaryConsolidatedResultGenerator(); | |
| break; | |
| case 'Template_20': | |
| // Presidency Colleges | |
| $this->SupplementaryConsolidatedMarkListResultDataGenerator = new Template20SupplementaryConsolidatedResultGenerator(); | |
| break; | |
| default: | |
| $this->SupplementaryConsolidatedMarkListResultDataGenerator = new Template1SupplementaryConsolidatedResultGenerator(); | |
| break; | |
| } | |
| } | |
| public function getConsolidatedMarkListResultData($request){ | |
| return $this->SupplementaryConsolidatedMarkListResultDataGenerator->getConsolidatedMarkListResultData($request); | |
| } | |
| } | |