PublishIp::envVar()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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