Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 16 |
| TranscriptMarkCardGenerator | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
20.00 | |
0.00% |
0 / 16 |
| __construct | |
0.00% |
0 / 1 |
12.00 | |
0.00% |
0 / 14 |
|||
| getTranscriptMarksCardResulData | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 2 |
|||
| <?php | |
| namespace com\linways\ec\core\service\TranscriptMarkCardGenerator; | |
| use com\linways\ec\core\service\StudentMarkListService; | |
| use com\linways\base\util\MakeSingletonTrait; | |
| use com\linways\ec\core\service\TranscriptMarkCardGenerator\Template3TranscriptResultGenerator; | |
| use com\linways\ec\core\service\TranscriptMarkCardGenerator\Template1TranscriptResultGenerator; | |
| use com\linways\ec\core\service\TranscriptMarkCardGenerator\Template6TranscriptResultGenerator; | |
| class TranscriptMarkCardGenerator{ | |
| use MakeSingletonTrait; | |
| // /Condition 1 - Presence of a static member variable | |
| private $TranscriptMarkCardResultDataGenerator; | |
| public function __construct(){ | |
| $examType = 'TRANSCRIPT_MARKS_CARD'; | |
| $markListTemplate = StudentMarkListService::getInstance()->getUniversityMarkListTemplate($examType); | |
| switch ($markListTemplate) { | |
| case 'Template_3': | |
| // SB Colleges | |
| $this->TranscriptMarkCardResultDataGenerator = new Template3TranscriptResultGenerator(); | |
| break; | |
| case 'Template_6': | |
| // SCEK Colleges | |
| $this->TranscriptMarkCardResultDataGenerator = new Template6TranscriptResultGenerator(); | |
| break; | |
| default: | |
| $this->TranscriptMarkCardResultDataGenerator = new Template1TranscriptResultGenerator(); | |
| break; | |
| } | |
| } | |
| public function getTranscriptMarksCardResulData($request){ | |
| return $this->TranscriptMarkCardResultDataGenerator->getTranscriptMarksCardResulData($request); | |
| } | |
| } | |