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
Pull Request — master (#9)
by Lukáš
03:14
created

ClientEntity   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 111
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A __clone() 0 4 1
A getSecret() 0 4 1
A setSecret() 0 4 1
A getIdentifier() 0 4 1
A setIdentifier() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
A getRedirectUri() 0 4 1
A setRedirectUri() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Lookyman\NetteOAuth2Server\Storage\Doctrine\Client;
5
6
use Doctrine\ORM\Mapping as ORM;
7
use League\OAuth2\Server\Entities\ClientEntityInterface;
8
9
/**
10
 * @ORM\Entity()
11
 * @ORM\Table(name="client")
12
 */
13
class ClientEntity implements ClientEntityInterface
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="text", nullable=true)
25
	 * @var string|null
26
	 */
27
	private $secret;
28
29
	/**
30
	 * @ORM\Column(type="string", length=80, unique=true)
31
	 * @var string
32
	 */
33
	private $identifier;
34
35
	/**
36
	 * @ORM\Column(type="text")
37
	 * @var string
38
	 */
39
	private $name;
40
41
	/**
42
	 * @ORM\Column(type="text")
43
	 * @var string
44
	 */
45
	private $redirectUri;
46
47
	/**
48
	 * @return int|null
49
	 */
50
	public function getId()
51
	{
52
		return $this->id;
53
	}
54
55
	public function __clone()
56
	{
57
		$this->id = null;
58
	}
59
60
	/**
61
	 * @return string|null
62
	 */
63
	public function getSecret()
64
	{
65
		return $this->secret;
66
	}
67
68
	/**
69
	 * @param string|null $secret
70
	 */
71
	public function setSecret($secret)
72
	{
73
		$this->secret = $secret;
74
	}
75
76
	/**
77
	 * @return string
78
	 */
79
	public function getIdentifier()
80
	{
81
		return $this->identifier;
82
	}
83
84
	/**
85
	 * @param string $identifier
86
	 */
87
	public function setIdentifier(string $identifier)
88
	{
89
		$this->identifier = $identifier;
90
	}
91
92
	/**
93
	 * @return string
94
	 */
95
	public function getName()
96
	{
97
		return $this->name;
98
	}
99
100
	/**
101
	 * @param string $name
102
	 */
103
	public function setName(string $name)
104
	{
105
		$this->name = $name;
106
	}
107
108
	/**
109
	 * @return string
110
	 */
111
	public function getRedirectUri()
112
	{
113
		return $this->redirectUri;
114
	}
115
116
	/**
117
	 * @param string $uri
118
	 */
119
	public function setRedirectUri(string $uri)
120
	{
121
		$this->redirectUri = $uri;
122
	}
123
}
124