Passed
Push — main ( beefde...1d7b81 )
by Yunfeng
55s queued 13s
created

UndefinedCaseException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BiiiiiigMonster\LaravelEnum\Exceptions;
6
7
use Exception;
8
9
class UndefinedCaseException extends Exception
10
{
11
    public function __construct(string $enum, string $case)
12
    {
13
        // Matches the error message of invalid Foo::BAR access
14
        parent::__construct("Undefined constant $enum::$case");
15
    }
16
}
17