InvalidRelationPathException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace Huntie\JsonApi\Exceptions;
4
5
use Illuminate\Http\Response;
6
7
class InvalidRelationPathException extends HttpException
8
{
9
    /**
10
     * Create a new InvalidRelationPathException instance.
11
     *
12
     * @param string $path The relation path attempted
13
     */
14
    public function __construct($path, $response = null)
15
    {
16
        parent::__construct(
17
            sprintf('The relationship path "%s" could not be resolved', $path),
18
            Response::HTTP_BAD_REQUEST
19
        );
20
    }
21
}
22