Passed
Push — master ( ea3910...4d8944 )
by Iman
05:47 queued 01:29
created

ConsolePrinter::printFooter()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 9
nc 2
nop 1
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace crocodicstudio\crudbooster\CBCoreModule\Installer;
4
5
class ConsolePrinter
6
{
7
    private $console;
8
9
    /**
10
     * ConsolePrinter constructor.
11
     *
12
     * @param $console
13
     */
14
    public function __construct($console)
15
    {
16
        $this->console = $console;
17
    }
18
19
    public function printHeader()
20
    {
21
        $this->console->info("
22
23
#     ______  ____    __  ______     _____                   __           
24
#    / ____/ / __ \  / / / / __ \   /  __ )____  ____  _____/ /____  _____
25
#   / /     / /_/ / / / / / / / /  / /__/ / __ \/ __ \/ ___/ __/ _ \/ ___/
26
#  / /___  / _, _/ / /_/ / /_/ /  / /__/ / /_/ / /_/ (__  ) /_/  __/ /    
27
#  \____/ /_/ |_|  \____/_____/  /______/\____/\____/____/\__/\___/_/     
28
#                                                                                                                      
29
			");
30
        $this->console->info('--------- :===: Thanks for choosing CRUDBooster :==: ---------------');
31
        $this->console->info('====================================================================');
32
    }
33
34
35
    public function printFooter($success = true)
36
    {
37
        $this->console->info('--');
38
        $this->console->info('Homepage : http://www.crudbooster.com');
39
        $this->console->info('Github : https://github.com/crocodic-studio/crudbooster');
40
        $this->console->info('Documentation : https://github.com/crocodic-studio/crudbooster/blob/master/docs/en/index.md');
41
        $this->console->info('====================================================================');
42
        if ($success == true) {
43
            $this->console->info('------------------- :===: Completed !! :===: ------------------------');
44
        } else {
45
            $this->console->info('------------------- :===:  Failed !!  :===: ------------------------');
46
        }
47
    }
48
}