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   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 4
c 2
b 0
f 0
lcom 1
cbo 0
dl 0
loc 45
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __clone() 0 4 1
A getIdentifier() 0 4 1
A setIdentifier() 0 4 1
A jsonSerialize() 0 4 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