Passed
Push — master ( bafcc7...55396a )
by Aleksandar
02:08 queued 11s
created

InvalidEvaluationResultType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 8
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * @author Aleksandar Panic
4
 * @license http://www.apache.org/licenses/LICENSE-2.0
5
 * @since 1.0.0
6
 **/
7
8
namespace ArekX\ArrayExpression\Exceptions;
9
10
class InvalidEvaluationResultType extends \Exception
11
{
12
    public $result;
13
14
    public function __construct($result, $expectedType)
15
    {
16
        $this->result = $result;
17
        parent::__construct("Expected result type '{$expectedType}'. Got type: " . print_r($result, true), 0, null);
18
    }
19
}