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

Scope::setScope()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 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
}