CompileException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 3
crap 1
1
<?php
2
/**
3
 * @author Todd Burry <[email protected]>
4
 * @copyright 2009-2017 Vanilla Forums Inc.
5
 * @license MIT
6
 */
7
8
namespace Ebi;
9
10
class CompileException extends \LogicException {
11
    private $context = [];
12
13 8
    public function __construct($message = "", $context = [], $previous = null) {
14 8
        parent::__construct($message, 500, $previous);
15 8
        $this->context = $context;
16 8
    }
17
18
    /**
19
     * Get the context.
20
     *
21
     * @return array Returns the context.
22
     */
23 8
    public function getContext() {
24 8
        return $this->context;
25
    }
26
}
27