Completed
Push — master ( fc6f01...c001b0 )
by Alexandre
01:58
created

OAuthServer::createResourceServer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Alexandre
5
 * Date: 21/04/2018
6
 * Time: 18:45
7
 */
8
9
namespace OAuth2;
10
11
12
use OAuth2\Roles\AuthorizationServer\AuthorizationServer;
13
use OAuth2\Roles\AuthorizationServer\EndUserInterface;
14
use OAuth2\Roles\ResourceServer\BearerAuthenticationMethods\FormEncodedBodyParameter;
15
use OAuth2\Roles\ResourceServer\BearerAuthenticationMethods\URIQueryParameter;
16
use OAuth2\Roles\ResourceServer\ResourceServer;
17
use OAuth2\ScopePolicy\ScopePolicyManager;
18
use OAuth2\Storages\StorageManager;
19
20
class OAuthServer
21
{
22
    private $authorizationServer;
23
    private $resourceServer;
24
25
    public function __construct(AuthorizationServer $authorizationServer,
26
                                ResourceServer $resourceServer)
27
    {
28
        $this->authorizationServer = $authorizationServer;
29
        $this->resourceServer = $resourceServer;
30
    }
31
32
    /**
33
     * @return AuthorizationServer
34
     */
35
    public function getAuthorizationServer(): AuthorizationServer
36
    {
37
        return $this->authorizationServer;
38
    }
39
40
    /**
41
     * @return ResourceServer
42
     */
43
    public function getResourceServer(): ResourceServer
44
    {
45
        return $this->resourceServer;
46
    }
47
48
49
}