PublicClient   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A requireRedirectUri() 0 3 1
A hasCredentials() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Alexandre
5
 * Date: 07/01/2018
6
 * Time: 13:37
7
 */
8
9
namespace OAuth2\Roles\ClientTypes;
10
11
12
/**
13
 * Class PublicClientType
14
 * @package OAuth2\Roles\Clients\Types
15
 */
16
abstract class PublicClient extends RegisteredClient implements PublicClientInterface
17
{
18
    public function hasCredentials(): bool
19
    {
20
        return false;
21
    }
22
23
    public function requireRedirectUri(): bool
24
    {
25
        return true;
26
    }
27
}