TicketException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 23
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Cassava\Exception;
4
5
/**
6
 * CAS ticket exception.
7
 *
8
 * @version 1.1.0
9
 * @since   1.1.0
10
 */
11
class TicketException extends GeneralException {
12
13
	/**
14
	 * Invalid Ticket Error
15
	 */
16
	const ERROR_INVALID_TICKET = 'INVALID_TICKET';
17
18
	/**
19
	 * Bad Proxy-Granting Ticket Error
20
	 */
21
	const ERROR_BAD_PGT        = 'BAD_PGT';
22
23
	/**
24
	 * Generates a new ticket exception.
25
	 *
26
	 * @param string $message Exception description.
27
	 * @param string $casCode CAS error code (default: "INVALID_TICKET").
28
	 */
29
	public function __construct( $message = '', $casCode = self::ERROR_INVALID_TICKET ) {
30
		parent::__construct( $message, $casCode );
31
	}
32
33
}
34