__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 6
rs 10
1
<?php
2
namespace W2w\Lib\Apie\Exceptions;
3
4
use Throwable;
5
use W2w\Lib\ApieObjectAccessNormalizer\Exceptions\ApieException;
6
7
/**
8
 * Thrown by ApiResourceFactory to tell it can not instantiate a class.
9
 */
10
class CouldNotConstructApiResourceClassException extends ApieException
11
{
12
    public function __construct($identifier, Throwable $previous = null)
13
    {
14
        $message = 'Class '
15
            . $identifier
16
            . ' has required constructor arguments and need to be registered as a service in a service provider.';
17
        parent::__construct(500, $message, $previous);
18
    }
19
}
20