Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 37 |
| FinalConsolidatedMarksCardGenerator | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
132.00 | |
0.00% |
0 / 37 |
| __construct | |
0.00% |
0 / 1 |
110.00 | |
0.00% |
0 / 35 |
|||
| getFinalConsolidatedMarksCard | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 2 |
|||
| <?php | |
| namespace com\linways\ec\core\service; | |
| use com\linways\ec\core\service\StudentMarkListService; | |
| use com\linways\base\util\MakeSingletonTrait; | |
| use com\linways\ec\core\service\FinalConsolidatdMarksCardGenerator\Template10FCMC; | |
| use com\linways\ec\core\service\FinalConsolidatdMarksCardGenerator\Template1FCMC; | |
| use com\linways\ec\core\service\FinalConsolidatdMarksCardGenerator\Template3FCMC; | |
| use com\linways\ec\core\service\FinalConsolidatdMarksCardGenerator\Template6FCMC; | |
| use com\linways\ec\core\service\FinalConsolidatdMarksCardGenerator\Template14FCMC; | |
| use com\linways\ec\core\service\FinalConsolidatdMarksCardGenerator\Template5FCMC; | |
| use com\linways\ec\core\service\FinalConsolidatdMarksCardGenerator\Template13FCMC; | |
| use com\linways\ec\core\service\FinalConsolidatdMarksCardGenerator\Template9FCMC; | |
| use com\linways\ec\core\service\FinalConsolidatdMarksCardGenerator\Template15FCMC; | |
| use com\linways\ec\core\service\MarksCardService; | |
| class FinalConsolidatedMarksCardGenerator{ | |
| use MakeSingletonTrait; | |
| private $FCMCDataGenerator; | |
| public function __construct(){ | |
| $examType = 'EC_FINAL_CONSOLIDATED_MARK_LIST'; | |
| $template = MarksCardService::getInstance()->getMarkCardTemplate($examType); | |
| switch ($template) { | |
| case 'Template1FCMC': | |
| // CHRIST Colleges | |
| $this->FCMCDataGenerator = new Template1FCMC(); | |
| break; | |
| case 'Template3FCMC': | |
| // SB College | |
| $this->FCMCDataGenerator = new Template3FCMC(); | |
| break; | |
| case 'Template10FCMC': | |
| // MES VIMALA STJOSEPH Colleges | |
| $this->FCMCDataGenerator = new Template10FCMC(); | |
| break; | |
| case 'Template6FCMC': | |
| // SCEK College | |
| $this->FCMCDataGenerator = new Template6FCMC(); | |
| break; | |
| case 'Template5FCMC': | |
| // MBCET College | |
| $this->FCMCDataGenerator = new Template5FCMC(); | |
| break; | |
| case 'Template14FCMC': | |
| // IAGI College | |
| $this->FCMCDataGenerator = new Template14FCMC(); | |
| break; | |
| case 'Template13FCMC': | |
| // ASSUMPTION College | |
| $this->FCMCDataGenerator = new Template13FCMC(); | |
| break; | |
| case 'Template9FCMC': | |
| // SJC College | |
| $this->FCMCDataGenerator = new Template9FCMC(); | |
| break; | |
| case 'Template15FCMC': | |
| // CCM College | |
| $this->FCMCDataGenerator = new Template15FCMC(); | |
| break; | |
| default: | |
| $this->FCMCDataGenerator = new Template10FCMC(); | |
| break; | |
| } | |
| } | |
| public function getFinalConsolidatedMarksCard($request){ | |
| return $this->FCMCDataGenerator->getFCMC($request); | |
| } | |
| } | |