Passed
Push — master ( 9821f5...ae638f )
by Felipe
01:46
created

DebugHandler::__invoke()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 1
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * @author Felipe Sayão Lobato Abreu <[email protected]>
4
 * @package CoiSA\ErrorHandler\Handler
5
 * @since 2017-07-24
6
 */
7
8
namespace CoiSA\ErrorHandler\Handler;
9
10
/**
11
 * Class DebugHandler
12
 * @package CoiSA\ErrorHandler\Handler
13
 */
14
abstract class DebugHandler implements HandlerInterface
15
{
16
    /**
17
     * @var bool Should add HTML <pre> TAG?
18
     */
19
    protected $pretty;
20
21
    /** @var  bool Send exit code? */
22
    protected $exit;
23
24
    /**
25
     * VarExportHandler constructor.
26
     *
27
     * @param bool $pretty
28
     */
29
    public function __construct(bool $pretty = true, $exit = false)
30
    {
31
        $this->pretty = $pretty;
32
        $this->exit = $exit;
33
    }
34
}