Completed
Push — master ( adb8c3...d72efb )
by ARCANEDEV
10s
created

Command::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 6
rs 9.4285
1
<?php namespace Arcanedev\LogViewer\Commands;
2
3
use Arcanedev\LogViewer\Contracts\LogViewer as LogViewerContract;
4
use Arcanedev\Support\Bases\Command as BaseCommand;
5
6
/**
7
 * Class     Command
8
 *
9
 * @package  Arcanedev\LogViewer\Bases
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
abstract class Command extends BaseCommand
13
{
14
    /* ------------------------------------------------------------------------------------------------
15
     |  Properties
16
     | ------------------------------------------------------------------------------------------------
17
     */
18
    /** @var \Arcanedev\LogViewer\Contracts\LogViewer */
19
    protected $logViewer;
20
21
    /* ------------------------------------------------------------------------------------------------
22
     |  Constructor
23
     | ------------------------------------------------------------------------------------------------
24
     */
25
    /**
26
     * Create the command instance.
27
     *
28
     * @param  \Arcanedev\LogViewer\Contracts\LogViewer  $logViewer
29
     */
30
    public function __construct(LogViewerContract $logViewer)
31
    {
32
        parent::__construct();
33
34
        $this->logViewer = $logViewer;
35
    }
36
37
    /* ------------------------------------------------------------------------------------------------
38
     |  Other Functions
39
     | ------------------------------------------------------------------------------------------------
40
     */
41
    /**
42
     * Display LogViewer Logo and Copyrights.
43
     */
44
    protected function displayLogViewer()
45
    {
46
        // LOGO
47
        $this->comment('   __                   _                        ');
48
        $this->comment('  / /  ___   __ _/\   /(_) _____      _____ _ __ ');
49
        $this->comment(' / /  / _ \ / _` \ \ / / |/ _ \ \ /\ / / _ \ \'__|');
50
        $this->comment('/ /__| (_) | (_| |\ V /| |  __/\ V  V /  __/ |   ');
51
        $this->comment('\____/\___/ \__, | \_/ |_|\___| \_/\_/ \___|_|   ');
52
        $this->comment('            |___/                                ');
53
        $this->line('');
54
55
        // Copyright
56
        $this->comment('Version ' . $this->logViewer->version() . ' - Created by ARCANEDEV' . chr(169));
57
        $this->line('');
58
    }
59
}
60