Completed
Push — master ( 704578...e88511 )
by Alex
32:19
created

ScopeEntity   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A jsonSerialize() 0 4 1
1
<?php
2
/**
3
 * @author      Alex Bilbie <[email protected]>
4
 * @copyright   Copyright (c) Alex Bilbie
5
 * @license     http://mit-license.org/
6
 *
7
 * @link        https://github.com/thephpleague/oauth2-server
8
 */
9
10
namespace OAuth2ServerExamples\Entities;
11
12
use League\OAuth2\Server\Entities\ScopeEntityInterface;
13
use League\OAuth2\Server\Entities\Traits\EntityTrait;
14
15
class ScopeEntity implements ScopeEntityInterface
16
{
17
    use EntityTrait;
18
19
    public function jsonSerialize()
20
    {
21
        return $this->getIdentifier();
22
    }
23
}
24