Completed
Push — master ( de901a...efbe60 )
by Derek Stephen
04:42
created

Scope   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getIdentifier() 0 4 1
A setIdentifier() 0 4 1
A jsonSerialize() 0 4 1
1
<?php
2
3
namespace OAuth;
4
5
use League\OAuth2\Server\Entities\ScopeEntityInterface;
6
7
class Scope implements ScopeEntityInterface
8
{
9
    /**
10
     * @var string
11
     */
12
    protected $identifier;
13
14
    /**
15
     * @return mixed
16
     */
17
    public function getIdentifier()
18
    {
19
        return $this->identifier;
20
    }
21
22
    /**
23
     * @param mixed $identifier
24
     */
25
    public function setIdentifier($identifier)
26
    {
27
        $this->identifier = $identifier;
28
    }
29
30
    /**
31
     * @return mixed
32
     */
33
    function jsonSerialize()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
34
    {
35
        return $this->getIdentifier();
36
    }
37
}