Completed
Pull Request — master (#53)
by Francesco
05:41
created

SharkPrinter::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Paraunit\Printer;
4
5
use Paraunit\Lifecycle\EngineEvent;
6
7
/**
8
 * Class SharkPrinter
9
 * @package Paraunit\Printer
10
 */
11
class SharkPrinter
12
{
13
14
    /** @var string */
15
    protected $version;
16
17
    /**
18
     * @param string $version
19
     */
20 9
    public function __construct($version)
21
    {
22 9
        $this->version = $version;
23 9
    }
24
25
    /**
26
     * @param EngineEvent $engineEvent
27
     */
28 9
    public function onEngineStart(EngineEvent $engineEvent)
29
    {
30 9
        $outputInterface = $engineEvent->getOutputInterface();
31
32 9
        $outputInterface->writeln('                                                   B>                           ');
33 9
        $outputInterface->writeln('                                                   B "Bp                        ');
34 9
        $outputInterface->writeln('.pp..                                              B    9p                      ');
35 9
        $outputInterface->writeln(' "9BBBBBBpp.                                       B      9p                    ');
36 9
        $outputInterface->writeln('    " ""9BBBBBBpp                          .<eeP"B B      .B b                  ');
37 9
        $outputInterface->writeln('           "SANDROBpp              .     B B     B B      )B B                  ');
38 9
        $outputInterface->writeln('              "BFRABBBB>  .<pe6P\B B     B B     B B      $  B     .e           ');
39 9
        $outputInterface->writeln('                 5NICOBBB B     ·B B     B B     B Bqp.  :B  B     $ 4BBpp      ');
40 9
        $outputInterface->writeln('                   BMIKIB B        B     B B     B B   "^Bp  B    ) |BBB"\BBpp. ');
41 9
        $outputInterface->writeln('                 .BALEBBB """9q.   B"""""B B"""""B B      1p B""""9p BBBBbBBBBBBB');
42 9
        $outputInterface->writeln('               <BLUCABBBB B    "B  B     B B     B B       B B     9 9BBB< ^P"  ');
43 9
        $outputInterface->writeln('            .6BSERGIOBBBB B666666B B     B B     B B       9 P      7 9BBBBP    ');
44
45 9
        $outputInterface->writeln('');
46 9
        $outputInterface->writeln(
47
            'PARAUNIT v' .
48 9
            $this->version .
49
            ' - by Francesco Panina, Alessandro Lai & Shark Dev Team @ Facile.it'
50 9
        );
51 9
    }
52
}
53