Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 19 |
ConsolidatedTabulationRegisterGenerator | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
30.00 | |
0.00% |
0 / 19 |
__construct | |
0.00% |
0 / 1 |
20.00 | |
0.00% |
0 / 17 |
|||
getConsolidatedTabulationRegisterResultData | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 2 |
<?php | |
namespace com\linways\ec\core\service\ConsolidatedTabulationRegisterGenerator; | |
use com\linways\ec\core\service\StudentMarkListService; | |
use com\linways\base\util\MakeSingletonTrait; | |
use com\linways\ec\core\service\ConsolidatedTabulationRegisterGenerator\Template1ConsolidatedTabulationRegisterGenerator; | |
use com\linways\ec\core\service\ConsolidatedTabulationRegisterGenerator\Template9ConsolidatedTabulationRegisterGenerator; | |
use com\linways\ec\core\service\ConsolidatedTabulationRegisterGenerator\Template15ConsolidatedTabulationRegisterGenerator; | |
class ConsolidatedTabulationRegisterGenerator{ | |
use MakeSingletonTrait; | |
private $ConsolidatedTabulationRegisterResultDataGenerator; | |
public function __construct(){ | |
$examType = 'EC_CONSOLIDATED_TR'; | |
$markListTemplate = StudentMarkListService::getInstance()->getUniversityMarkListTemplate($examType); | |
switch ($markListTemplate) { | |
case 'Template_1': | |
// MES VIMALA STJOSEPH Colleges | |
$this->ConsolidatedTabulationRegisterResultDataGenerator = new Template1ConsolidatedTabulationRegisterGenerator(); | |
break; | |
case 'Template_9': | |
// SJC College | |
$this->ConsolidatedTabulationRegisterResultDataGenerator = new Template9ConsolidatedTabulationRegisterGenerator(); | |
break; | |
case 'Template_15': | |
// CCM College | |
$this->ConsolidatedTabulationRegisterResultDataGenerator = new Template15ConsolidatedTabulationRegisterGenerator(); | |
break; | |
default: | |
$this->ConsolidatedTabulationRegisterResultDataGenerator = new Template1ConsolidatedTabulationRegisterGenerator(); | |
break; | |
} | |
} | |
public function getConsolidatedTabulationRegisterResultData($request){ | |
return $this->ConsolidatedTabulationRegisterResultDataGenerator->getConsolidatedTabulationRegisterResultData($request); | |
} | |
} | |