GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Exception   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A log() 0 4 1
1
<?php declare(strict_types=1);
2
/**
3
 * @license MIT
4
 * @author Samuel Adeshina <[email protected]>
5
 *
6
 * This file is part of the EmmetBlue project, please read the license document
7
 * available in the root level of the project
8
 */
9
namespace EmmetBlue\Core\Exception;
10
11
use EmmetBlue\Core\Logger\ErrorLog;
12
13
/**
14
 * class Exception.
15
 * Instantiates a new instance of Exception
16
 *
17
 * @author Samuel Adeshina <[email protected]>
18
 *
19
 * @since v0.0.1 08/06/2016 14:20
20
 */
21
abstract class Exception extends \Exception
22
{
23
	protected $exception;
24
25
	public function __construct(string $message, int $code = 0, \Exception $previous = null)
26
	{
27
		parent::__construct($message, $code, $previous);
28
		$this->exception = $this;
29
	}
30
31
	public function log(int $databaseUserId, string $errorNumber, string $errorSeverity)
32
	{
33
		ErrorLog::log($databaseUserId, $errorNumber, $errorSeverity, $this->getMessage());
34
	}
35
}