CouldNotConstructApiResourceClassException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

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