Failed Conditions
Push — ng ( 57a3a2...d2fe45 )
by Florent
03:39
created

ResourceServer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 17
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getResourceServerId() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * The MIT License (MIT)
7
 *
8
 * Copyright (c) 2014-2018 Spomky-Labs
9
 *
10
 * This software may be modified and distributed under the terms
11
 * of the MIT license.  See the LICENSE file for details.
12
 */
13
14
namespace OAuth2Framework\Bundle\Tests\TestBundle\Entity;
15
16
use OAuth2Framework\Component\Core\ResourceServer\ResourceServer as ResourceServerInterface;
17
use OAuth2Framework\Component\Core\ResourceServer\ResourceServerId;
18
19
final class ResourceServer implements ResourceServerInterface
20
{
21
    private $resourceServerId;
22
23
    public function __construct(ResourceServerId $resourceServerId)
24
    {
25
        $this->resourceServerId = $resourceServerId;
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function getResourceServerId(): ResourceServerId
32
    {
33
        return $this->resourceServerId;
34
    }
35
}
36