Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 52 |
| SupplementaryIndividualMarkCardGenerator | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
272.00 | |
0.00% |
0 / 52 |
| __construct | |
0.00% |
0 / 1 |
240.00 | |
0.00% |
0 / 50 |
|||
| getIndividualMarkCardResultData | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 2 |
|||
| <?php | |
| namespace com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator; | |
| use com\linways\ec\core\service\StudentMarkListService; | |
| use com\linways\base\util\MakeSingletonTrait; | |
| use com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator\Template1SupplementaryIndividualResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator\Template2SupplementaryIndividualResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator\Template3SupplementaryIndividualResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator\Template4SupplementaryIndividualResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator\Template5SupplementaryIndividualResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator\Template6SupplementaryIndividualResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator\Template7IndividualResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator\Template8IndividualResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator\Template9SupplementaryIndividualResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator\Template10IndividualResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator\Template12IndividualResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator\Template11SupplementaryIndividualResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator\Template16SupplementaryIndividualResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator\Template14SupplementaryIndividualResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator\Template15SupplementaryIndividualResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator\Template13SupplementaryIndividualResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator\Template18SupplementaryIndividualResultGenerator; | |
| use com\linways\ec\core\service\SupplementaryIndividualMarkCardGenerator\Template20SupplementaryIndividualResultGenerator; | |
| class SupplementaryIndividualMarkCardGenerator{ | |
| use MakeSingletonTrait; | |
| // /Condition 1 - Presence of a static member variable | |
| private $SupplementaryIndividualMarkCardResultDataGenerator; | |
| public function __construct(){ | |
| $examType = 'EC_SUPPLEMENTARY_INDIVIDUAL'; | |
| $markListTemplate = StudentMarkListService::getInstance()->getUniversityMarkListTemplate($examType); | |
| switch ($markListTemplate) { | |
| case 'Template_1': | |
| // MES STJOSEPH Colleges | |
| $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template1SupplementaryIndividualResultGenerator(); | |
| break; | |
| case 'Template_2': | |
| // CHRIST Colleges | |
| $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template2SupplementaryIndividualResultGenerator(); | |
| break; | |
| case 'Template_3': | |
| // SB Colleges | |
| $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template3SupplementaryIndividualResultGenerator(); | |
| break; | |
| case 'Template_4': | |
| // MA Colleges | |
| $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template4SupplementaryIndividualResultGenerator(); | |
| break; | |
| case 'Template_5': | |
| // MBCET Colleges | |
| $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template5SupplementaryIndividualResultGenerator(); | |
| break; | |
| case 'Template_6': | |
| // SAINTGITS Colleges | |
| $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template6SupplementaryIndividualResultGenerator(); | |
| break; | |
| // case 'Template_7': | |
| // // AIMIT SAC Colleges | |
| // $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template7IndividualResultGenerator(); | |
| // break; | |
| // case 'Template_8': | |
| // // IIIC Colleges | |
| // $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template8IndividualResultGenerator(); | |
| // break; | |
| case 'Template_9': | |
| // SJC Colleges | |
| $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template9SupplementaryIndividualResultGenerator(); | |
| break; | |
| // case 'Template_10': | |
| // // SJEC Colleges | |
| // $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template10IndividualResultGenerator(); | |
| // break; | |
| case 'Template_11': | |
| // SJCC Colleges | |
| $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template11SupplementaryIndividualResultGenerator(); | |
| break; | |
| // case 'Template_12': | |
| // // CHSD Colleges | |
| // $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template12IndividualResultGenerator(); | |
| // break; | |
| case 'Template_14': | |
| // IAGI College | |
| $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template14SupplementaryIndividualResultGenerator(); | |
| break; | |
| case 'Template_13': | |
| // ASSMPTION Colleges | |
| $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template13SupplementaryIndividualResultGenerator(); | |
| break; | |
| case 'Template_15': | |
| // Caemel Colleges | |
| $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template15SupplementaryIndividualResultGenerator(); | |
| break; | |
| case 'Template_16': | |
| // VES Colleges | |
| $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template16SupplementaryIndividualResultGenerator(); | |
| break; | |
| case 'Template_18': | |
| // IIBM Colleges | |
| $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template18SupplementaryIndividualResultGenerator(); | |
| break; | |
| case 'Template_20': | |
| // PRESIDENCY Colleges | |
| $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template20SupplementaryIndividualResultGenerator(); | |
| break; | |
| default: | |
| $this->SupplementaryIndividualMarkCardResultDataGenerator = new Template1SupplementaryIndividualResultGenerator(); | |
| break; | |
| } | |
| } | |
| public function getIndividualMarkCardResultData($request){ | |
| return $this->SupplementaryIndividualMarkCardResultDataGenerator->getIndividualMarkCardResultData($request); | |
| } | |
| } | |