ClientsHelper   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 21
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A personalAccessClientId() 0 4 1
1
<?php
2
3
namespace ByTIC\Hello\Utility;
4
5
/**
6
 * Class ClientsHelper
7
 * @package ByTIC\Hello\Utility
8
 */
9
class ClientsHelper
10
{
11
    public const PERSONAL_ACCESS_REDIRECT_URI = 'INTERNAL_API';
12
13
    /**
14
     * The personal access token client ID.
15
     *
16
     * @var int
17
     */
18
    public static $personalAccessClientId;
19
20
    /**
21
     * Set the client ID that should be used to issue personal access tokens.
22
     *
23
     * @param  int $clientId
24
     * @return static
25
     */
26 6
    public static function personalAccessClientId($clientId)
27
    {
28 6
        static::$personalAccessClientId = $clientId;
29 6
        return new static();
30
    }
31
}
32