DisplayException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
dl 0
loc 6
rs 9.4286
c 2
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
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