PublishIp   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 46
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 PublishIp.
7
 *
8
 * @package Acacha\ForgePublish\Commands
9
 */
10
class PublishIp extends SaveEnvVariable
11
{
12
    /**
13
     * The name and signature of the console command.
14
     *
15
     * @var string
16
     */
17
    protected $signature = 'publish:ip {ip?}';
18
19
    /**
20
     * The console command description.
21
     *
22
     * @var string
23
     */
24
    protected $description = 'Save acacha forge ip';
25
26
    /**
27
     * Env var to set.
28
     *
29
     * @return mixed
30
     */
31
    protected function envVar()
32
    {
33
        return 'ACACHA_FORGE_IP_ADDRESS';
34
    }
35
36
    /**
37
     * Argument key.
38
     *
39
     * @return mixed
40
     */
41
    protected function argKey()
42
    {
43
        return 'ip';
44
    }
45
46
    /**
47
     * Question text.
48
     *
49
     * @return mixed
50
     */
51
    protected function questionText()
52
    {
53
        return 'Acacha forge IP address?';
54
    }
55
}
56