Passed
Push — master ( dff13b...dab0e7 )
by Jesse
03:04
created

ExceptionThrowingConstructor   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 6
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Stratadox\Instantiator\Test\Fixtures;
5
6
use BadMethodCallException;
7
8
final class ExceptionThrowingConstructor
9
{
10
    /** @throws BadMethodCallException */
11
    public function __construct()
12
    {
13
        throw new BadMethodCallException('Should not call the constructor.');
14
    }
15
}
16