DisplayException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php namespace Cerbero\Auth\Exceptions;
2
3
/**
4
 * Display an error to the user.
5
 *
6
 * @author	Andrea Marco Sartori
7
 */
8
class DisplayException extends \Exception {
9
	
10
	/**
11
	 * Set the dependencies.
12
	 *
13
	 * @author	Andrea Marco Sartori
14
	 * @param	string	$message
15
	 * @param	array	$parameters
16
	 * @return	void
17
	 */
18
	public function __construct($message, array $parameters = [])
19
	{
20
		$translation = trans($message, $parameters);
21
22
		parent::__construct($translation);
23
	}
24
25
}
26