Completed
Pull Request — master (#22)
by Todd
02:46
created

CompileException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 3
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
    public function __construct($message = "", $context = [], $previous = null) {
14
        parent::__construct($message, 500, $previous);
15
        $this->context = $context;
16
    }
17
18
    /**
19
     * Get the context.
20
     *
21
     * @return array Returns the context.
22
     */
23
    public function getContext() {
24
        return $this->context;
25
    }
26
}
27