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 ( 3ae4c4...a52273 )
by Lukáš
02:32 queued 14s
created

ScopeEntity::setIdentifier()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
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
	public function __clone()
30
	{
31
		$this->id = null;
32
	}
33
34
	/**
35
	 * @return string
36
	 */
37
	public function getIdentifier()
38
	{
39
		return $this->identifier;
40
	}
41
42
	/**
43
	 * @param string $identifier
44
	 */
45
	public function setIdentifier(string $identifier)
46
	{
47
		$this->identifier = $identifier;
48
	}
49
50
	/**
51
	 * @return string
52
	 */
53
	public function jsonSerialize()
54
	{
55
		return $this->getIdentifier();
56
	}
57
}
58