SqliteCommand::sqlite()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Acacha\Llum\Console;
4
5
use Acacha\Llum\Traits\SqliteEnv;
6
use Acacha\Llum\Traits\TouchSqliteFile;
7
8
/**
9
 * Class SqliteCommand.
10
 */
11
class SqliteCommand extends LlumCommand
12
{
13
    use TouchSqliteFile, SqliteEnv;
14
15
    /**
16
     * Command name.
17
     *
18
     * @var string
19
     */
20
    protected $commandName = 'sqlite';
21
22
    /**
23
     * Command description.
24
     *
25
     * @var string
26
     */
27
    protected $commandDescription = 'Touch sqlite file and enable sqlite on .env';
28
29
    /**
30
     * Method to execute.
31
     *
32
     * @var string
33
     */
34
    protected $method = 'sqlite';
35
36
    /**
37
     * sqlite command.
38
     */
39
    public function sqlite()
40
    {
41
        $this->touchSqliteFile();
42
        $this->sqliteEnv();
43
    }
44
}
45