Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 28 |
| ProvisionalMarksCardGenerator | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
72.00 | |
0.00% |
0 / 28 |
| __construct | |
0.00% |
0 / 1 |
56.00 | |
0.00% |
0 / 26 |
|||
| 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\ProvisionalMarksCardGenerator\Template1PC; | |
| use com\linways\ec\core\service\ProvisionalMarksCardGenerator\Template3PC; | |
| use com\linways\ec\core\service\ProvisionalMarksCardGenerator\Template6PC; | |
| use com\linways\ec\core\service\ProvisionalMarksCardGenerator\Template5PC; | |
| use com\linways\ec\core\service\ProvisionalMarksCardGenerator\Template14PC; | |
| use com\linways\ec\core\service\ProvisionalMarksCardGenerator\Template13PC; | |
| use com\linways\ec\core\service\ProvisionalMarksCardGenerator\Template9PC; | |
| use com\linways\ec\core\service\MarksCardService; | |
| class ProvisionalMarksCardGenerator{ | |
| use MakeSingletonTrait; | |
| private $PCDataGenerator; | |
| public function __construct(){ | |
| $examType = 'EC_PROVISIONAL_MARK_CARD'; | |
| $template = MarksCardService::getInstance()->getMarkCardTemplate($examType); | |
| switch ($template) { | |
| case 'Template_3': | |
| // SB College | |
| $this->PCDataGenerator = new Template3PC(); | |
| break; | |
| case 'Template_5': | |
| // MBCET College | |
| $this->PCDataGenerator = new Template5PC(); | |
| break; | |
| case 'Template_6': | |
| // SAINTGITS Colleges | |
| $this->PCDataGenerator = new Template6PC(); | |
| break; | |
| case 'Template_14': | |
| // IAGI Colleges | |
| $this->PCDataGenerator = new Template14PC(); | |
| break; | |
| case 'Template_13': | |
| // ASSUMPTION Colleges | |
| $this->PCDataGenerator = new Template13PC(); | |
| break; | |
| case 'Template_9': | |
| // SJC Colleges | |
| $this->PCDataGenerator = new Template9PC(); | |
| break; | |
| default: | |
| $this->PCDataGenerator = new Template1PC(); | |
| break; | |
| } | |
| } | |
| public function getFinalConsolidatedMarksCard($request){ | |
| return $this->PCDataGenerator->getFCMC($request); | |
| } | |
| } | |