Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 9
AssessmentExamService
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 2
12.00
0.00% covered (danger)
0.00%
0 / 9
 __construct
0.00% covered (danger)
0.00%
0 / 1
2.00
0.00% covered (danger)
0.00%
0 / 1
 getBlockReasons
0.00% covered (danger)
0.00%
0 / 1
6.00
0.00% covered (danger)
0.00%
0 / 8
<?php
namespace com\linways\ec\core\service;
use com\linways\base\util\SecurityUtils;
use com\linways\base\util\MakeSingletonTrait;
use com\linways\ec\core\exception\ExamControllerException;
use com\linways\ec\core\constant\StatusConstants;
use com\linways\core\ams\professional\service\ExamService;
class AssessmentExamService extends BaseService
{
    use MakeSingletonTrait;
    private function __construct() {
    }
    /**
     * Get Block reasons
     * @param $type
     * @return Array $blockReasons
     */
    public function getBlockReasons ($type = null)
    {
        $type = $this->realEscapeString($type);
        $blockReasons = ExamService::getInstance()->getAllStudentRegBlockReason ($type);
        
        foreach ($blockReasons as $reason ) {
            $reason->text = $reason->reason;
        }
        return $blockReasons;
    }
}