Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 37 |
| BarcodeGenerator | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
132.00 | |
0.00% |
0 / 37 |
| __construct | |
0.00% |
0 / 1 |
110.00 | |
0.00% |
0 / 35 |
|||
| getBarcodeResultData | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 2 |
|||
| <?php | |
| namespace com\linways\ec\core\service\BarcodeGenerator; | |
| use com\linways\ec\core\service\StudentMarkListService; | |
| use com\linways\base\util\MakeSingletonTrait; | |
| use com\linways\ec\core\service\BarcodeGenerator\Template1BarcodeGenerator; | |
| use com\linways\ec\core\service\BarcodeGenerator\Template6BarcodeGenerator; | |
| use com\linways\ec\core\service\BarcodeGenerator\Template5BarcodeGenerator; | |
| use com\linways\ec\core\service\BarcodeGenerator\Template15BarcodeGenerator; | |
| use com\linways\ec\core\service\BarcodeGenerator\Template29BarcodeGenerator; | |
| use com\linways\ec\core\service\BarcodeGenerator\Template1_2BarcodeGenerator; | |
| use com\linways\ec\core\service\BarcodeGenerator\Template32BarcodeGenerator; | |
| class BarcodeGenerator{ | |
| use MakeSingletonTrait; | |
| private $BarcodeResultDataGenerator; | |
| public function __construct(){ | |
| $examType = 'EC_BAR_CODE_TEMPLATE'; | |
| $hallticketTemplate = StudentMarkListService::getInstance()->getUniversityMarkListTemplate($examType); | |
| switch ($hallticketTemplate) { | |
| case 'Template_1': | |
| // MES VIMALA STJOSEPH Colleges | |
| $this->BarcodeResultDataGenerator = new Template1BarcodeGenerator(); | |
| break; | |
| // MBCET Colleges | |
| case 'Template_5': | |
| $this->BarcodeResultDataGenerator = new Template5BarcodeGenerator(); | |
| break; | |
| // SCEK Colleges | |
| case 'Template_6': | |
| $this->BarcodeResultDataGenerator = new Template6BarcodeGenerator(); | |
| break; | |
| // CCM college template | |
| case 'Template_15': | |
| $this->BarcodeResultDataGenerator = new Template15BarcodeGenerator(); | |
| break; | |
| // SJU college template | |
| case 'Template_9': | |
| $this->BarcodeResultDataGenerator = new Template9BarcodeGenerator(); | |
| break; | |
| case 'Template_29': | |
| // SH Colleges | |
| $this->BarcodeResultDataGenerator = new Template29BarcodeGenerator(); | |
| break; | |
| case 'Template_1_2': | |
| // VIMALA Colleges | |
| $this->BarcodeResultDataGenerator = new Template1_2BarcodeGenerator(); | |
| break; | |
| case 'Template_1_3': | |
| // STTHOMAS Colleges | |
| $this->BarcodeResultDataGenerator = new Template1_3BarcodeGenerator(); | |
| break; | |
| case 'Template_32': | |
| //Jawahar Colleges | |
| $this->BarcodeResultDataGenerator = new Template32BarcodeGenerator(); | |
| break; | |
| default: | |
| $this->BarcodeResultDataGenerator = new Template1BarcodeGenerator(); | |
| break; | |
| } | |
| } | |
| public function getBarcodeResultData($request){ | |
| return $this->BarcodeResultDataGenerator->getBarcodeResultData($request); | |
| } | |
| } | |