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.
Completed
Push — master ( 36a6b8...aa76e9 )
by Lukáš
10s
created

ScopeEntity::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Lookyman\NetteOAuth2Server\Storage\Doctrine\Scope;
5
6
use Doctrine\ORM\Mapping as ORM;
7
use League\OAuth2\Server\Entities\ScopeEntityInterface;
8
9
/**
10
 * @ORM\Entity()
11
 * @ORM\Table(name="scope")
12
 */
13
class ScopeEntity implements ScopeEntityInterface
14
{
15
	/**
16
	 * @ORM\Id()
17
	 * @ORM\GeneratedValue()
18
	 * @ORM\Column(type="integer")
19
	 * @var int
20
	 */
21
	private $id;
22
23
	/**
24
	 * @ORM\Column(type="string", length=80, unique=true)
25
	 * @var string
26
	 */
27
	private $identifier;
28
29
	/**
30
	 * @return int|null
31
	 */
32
	public function getId()
33
	{
34
		return $this->id;
35
	}
36
37
	public function __clone()
38
	{
39
		$this->id = null;
40
	}
41
42
	/**
43
	 * @return string
44
	 */
45
	public function getIdentifier()
46
	{
47
		return $this->identifier;
48
	}
49
50
	/**
51
	 * @param string $identifier
52
	 */
53
	public function setIdentifier(string $identifier)
54
	{
55
		$this->identifier = $identifier;
56
	}
57
58
	/**
59
	 * @return string
60
	 */
61
	public function jsonSerialize()
62
	{
63
		return $this->getIdentifier();
64
	}
65
}
66