CanNotCallFromNativeWithAbstractClassOrInterface   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
eloc 2
c 1
b 1
f 1
dl 0
loc 5
rs 10
wmc 1

1 Method

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