CompileException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 17
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getContext() 0 3 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