Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 13 |
| RevaluationMemoGenerator | |
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 |
|||
| getRevaluationMemoResultData | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 2 |
|||
| <?php | |
| namespace com\linways\ec\core\service\RevaluationMemoGenerator; | |
| use com\linways\ec\core\service\StudentMarkListService; | |
| use com\linways\base\util\MakeSingletonTrait; | |
| use com\linways\ec\core\service\RevaluationMemoGenerator\Template15RevaluationMemoResultGenerator; | |
| class RevaluationMemoGenerator{ | |
| use MakeSingletonTrait; | |
| // /Condition 1 - Presence of a static member variable | |
| private $RevaluationMemoResultDataGenerator; | |
| public function __construct(){ | |
| $examType = 'EC_REVALUATION_MEMO'; | |
| $markListTemplate = StudentMarkListService::getInstance()->getUniversityMarkListTemplate($examType); | |
| switch ($markListTemplate) { | |
| case 'Template_15': | |
| // CCM College | |
| $this->RevaluationMemoResultDataGenerator = new Template15RevaluationMemoResultGenerator(); | |
| break; | |
| default: | |
| $this->RevaluationMemoResultDataGenerator = new Template15RevaluationMemoResultGenerator(); | |
| break; | |
| } | |
| } | |
| public function getRevaluationMemoResultData($request){ | |
| return $this->RevaluationMemoResultDataGenerator->getRevaluationMemoResultData($request); | |
| } | |
| } | |