Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 13 |
| RevaluationIndividualMarkCardGenerator | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
12.00 | |
0.00% |
0 / 13 |
| __construct | |
0.00% |
0 / 1 |
6.00 | |
0.00% |
0 / 11 |
|||
| getIndividualMarkCardResultData | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 2 |
|||
| <?php | |
| namespace com\linways\ec\core\service\RevaluationIndividualMarkCardGenerator; | |
| use com\linways\ec\core\service\StudentMarkListService; | |
| use com\linways\base\util\MakeSingletonTrait; | |
| use com\linways\ec\core\service\RevaluationIndividualMarkCardGenerator\Template16RevaluationIndividualResultGenerator; | |
| use com\linways\ec\core\service\RevaluationIndividualMarkCardGenerator\TemplateDefaultRevaluationIndividualResultGenerator; | |
| class RevaluationIndividualMarkCardGenerator{ | |
| use MakeSingletonTrait; | |
| // /Condition 1 - Presence of a static member variable | |
| private $RevaluationIndividualMarkCardResultDataGenerator; | |
| public function __construct(){ | |
| $examType = 'EC_REVALUATION_INDIVIDUAL'; | |
| $markListTemplate = StudentMarkListService::getInstance()->getUniversityMarkListTemplate($examType); | |
| switch ($markListTemplate) { | |
| case 'Template_16': | |
| // VES Colleges | |
| $this->RevaluationIndividualMarkCardResultDataGenerator = new Template16RevaluationIndividualResultGenerator(); | |
| break; | |
| default: | |
| $this->RevaluationIndividualMarkCardResultDataGenerator = new TemplateDefaultRevaluationIndividualResultGenerator(); | |
| break; | |
| } | |
| } | |
| public function getIndividualMarkCardResultData($request){ | |
| return $this->RevaluationIndividualMarkCardResultDataGenerator->getIndividualMarkCardResultData($request); | |
| } | |
| } | |