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.

Error::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 3
1
<?php
2
3
namespace prgTW\BaseCRM\Error;
4
5
class Error
6
{
7
	/** @var string */
8
	protected $code;
9
10
	/** @var string */
11
	protected $field;
12
13
	/** @var string */
14
	protected $description;
15
16
	/**
17
	 * @param string $code
18
	 * @param string $field
19
	 * @param string $description
20
	 */
21
	public function __construct($code, $field, $description)
22
	{
23
		$this->code        = $code;
24
		$this->field       = $field;
25
		$this->description = $description;
26
	}
27
28
	/**
29
	 * @return string
30
	 */
31
	public function getCode()
32
	{
33
		return $this->code;
34
	}
35
36
	/**
37
	 * @return string
38
	 */
39
	public function getDescription()
40
	{
41
		return $this->description;
42
	}
43
44
	/**
45
	 * @return string
46
	 */
47
	public function getField()
48
	{
49
		return $this->field;
50
	}
51
}
52