PublicClient::hasCredentials()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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
}