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

ClientsHelper::personalAccessClientId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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