Test Failed
Push — master ( a6b51e...5fffdb )
by Gabriel
08:05
created

ClientsHelper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 24
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1
wmc 1
lcom 1
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A personalAccessClientId() 0 5 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
12
    const PERSONAL_ACCESS_REDIRECT_URI = 'INTERNAL_API';
13
14
    /**
15
     * The personal access token client ID.
16
     *
17
     * @var int
18
     */
19
    public static $personalAccessClientId;
20
21
    /**
22
     * Set the client ID that should be used to issue personal access tokens.
23
     *
24
     * @param  int $clientId
25
     * @return static
26
     */
27 6
    public static function personalAccessClientId($clientId)
28
    {
29 6
        static::$personalAccessClientId = $clientId;
30 6
        return new static;
31
    }
32
}
33