Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 16 |
| ProgramResultGenerator | |
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 |
|||
| getProgramResultData | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 2 |
|||
| <?php | |
| namespace com\linways\ec\core\service\ProgramResultGenerator; | |
| use com\linways\ec\core\service\StudentMarkListService; | |
| use com\linways\base\util\MakeSingletonTrait; | |
| use com\linways\ec\core\service\ProgramResultGenerator\Template1ProgramResultGenerator; | |
| use com\linways\ec\core\service\ProgramResultGenerator\Template13ProgramResultGenerator; | |
| class ProgramResultGenerator{ | |
| use MakeSingletonTrait; | |
| private $ProgramResultDataGenerator; | |
| public function __construct(){ | |
| $examType = 'EC_PROGRAM_RESULT_TEMPLATE'; | |
| $programResultTemplate = StudentMarkListService::getInstance()->getUniversityMarkListTemplate($examType); | |
| switch ($programResultTemplate) { | |
| case 'Template_1': | |
| // SB Colleges | |
| $this->ProgramResultDataGenerator = new Template1ProgramResultGenerator(); | |
| break; | |
| case 'Template_13': | |
| // ASSUMPTION Colleges | |
| $this->ProgramResultDataGenerator = new Template13ProgramResultGenerator(); | |
| break; | |
| default: | |
| $this->ProgramResultDataGenerator = new Template1ProgramResultGenerator(); | |
| break; | |
| } | |
| } | |
| public function getProgramResultData($request){ | |
| return $this->ProgramResultDataGenerator->getProgramResultData($request); | |
| } | |
| } | |