Passed
Pull Request — master (#2028)
by Gabriel
203:46 queued 138:41
created

AccessDeniedException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 3
dl 0
loc 2
rs 10
1
<?php
2
3
namespace WMDE\Fundraising\Frontend\App;
4
5
use Symfony\Component\HttpFoundation\Response;
6
use Symfony\Component\HttpKernel\Exception\HttpException;
7
8
/**
9
 * @license GPL-2.0-or-later
10
 */
11
class AccessDeniedException extends HttpException {
12
13
	public function __construct( ?string $message = null, int $code = 0, ?\Throwable $previousException = null ) {
14
		parent::__construct( Response::HTTP_FORBIDDEN, $message, $previousException, [], $code );
15
	}
16
}
17