Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class CasException extends \Exception |
||
10 | { |
||
11 | // For list of cas codes see https://apereo.github.io/cas/5.2.x/protocol/CAS-Protocol-Specification.html#253-error-codes |
||
12 | const INVALID_TICKET = 'INVALID_TICKET'; |
||
13 | const INVALID_SERVICE = 'INVALID_SERVICE'; |
||
14 | |||
15 | private $casCode; |
||
16 | |||
17 | /** |
||
18 | * CasException constructor. |
||
19 | * @param string $casCode |
||
20 | * @param string $message |
||
21 | */ |
||
22 | public function __construct($casCode, $message) |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return string |
||
30 | */ |
||
31 | public function getCasCode() |
||
36 |