PublishToken   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 47
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A envVar() 0 4 1
A argKey() 0 4 1
A questionText() 0 4 1
1
<?php
2
3
namespace Acacha\ForgePublish\Commands;
4
5
/**
6
 * Class PublishToken.
7
 *
8
 * @package Acacha\ForgePublish\Commands
9
 */
10
class PublishToken extends SaveEnvVariable
11
{
12
13
    /**
14
     * The name and signature of the console command.
15
     *
16
     * @var string
17
     */
18
    protected $signature = 'publish:token {token?}';
19
20
    /**
21
     * The console command description.
22
     *
23
     * @var string
24
     */
25
    protected $description = 'Save Personal Access Token';
26
27
    /**
28
     * Env var to set.
29
     *
30
     * @return mixed
31
     */
32
    protected function envVar()
33
    {
34
        return 'ACACHA_FORGE_ACCESS_TOKEN';
35
    }
36
37
    /**
38
     * Argument key.
39
     *
40
     * @return mixed
41
     */
42
    protected function argKey()
43
    {
44
        return 'token';
45
    }
46
47
    /**
48
     * Question text.
49
     *
50
     * @return mixed
51
     */
52
    protected function questionText()
53
    {
54
        return 'Personal Access Token?';
55
    }
56
}
57