__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
cc 1
eloc 1
c 1
b 1
f 1
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
4
namespace Apie\TypeJuggling\Exceptions;
5
6
use Apie\Core\Exceptions\ApieException;
7
8
class CanNotCallFromNativeWithAbstractClassOrInterface extends ApieException
9
{
10
    public function __construct(string $className)
11
    {
12
        parent::__construct(500, sprintf("The class %s is abstract or an interface, so can not be instantiated", $className));
13
    }
14
}
15