Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 9 |
| PCGenerator | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
42.00 | |
0.00% |
0 / 9 |
| __construct | n/a |
0 / 0 |
1 | n/a |
0 / 0 |
|||||
| getFCMC | |
0.00% |
0 / 1 |
6.00 | |
0.00% |
0 / 9 |
|||
| renderTemplate | n/a |
0 / 0 |
1 | n/a |
0 / 0 |
|||||
| processData | n/a |
0 / 0 |
1 | n/a |
0 / 0 |
|||||
| getTemplateName | n/a |
0 / 0 |
1 | n/a |
0 / 0 |
|||||
| <?php | |
| namespace com\linways\ec\core\service\ProvisionalMarksCardGenerator; | |
| use com\linways\ec\core\service\BaseService; | |
| abstract class PCGenerator extends BaseService{ | |
| protected $layoutDetails = null; | |
| public function __construct(){} | |
| /** | |
| * Generate HTML code | |
| * | |
| * @package $request | |
| * @return void | |
| */ | |
| public function getFCMC( $request){ | |
| $data= new \stdClass; | |
| $data = $this->processData($request); | |
| $this->layoutDetails->template = $this->getTemplateName($request); | |
| if (empty($data)) { | |
| return null; | |
| } | |
| $finalConsolidatedMarksCardData = $this->renderTemplate($this->layoutDetails->template, $data); | |
| return $finalConsolidatedMarksCardData; | |
| } | |
| /** | |
| * Render Program Result | |
| * | |
| * @param $templateName | |
| * @param Object $data | |
| * @return Object | |
| */ | |
| protected function renderTemplate($templateName, $data){} | |
| /** | |
| * Process Student data college base | |
| * | |
| * @param $request | |
| */ | |
| abstract protected function processData($request); | |
| /** | |
| * Process Student data college base | |
| * | |
| * @param $request | |
| */ | |
| abstract protected function getTemplateName($request); | |
| } | |