Passed
Push — master ( 6ae3ad...2da59f )
by Pavel
02:03
created

RestResponse   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A notFound() 0 3 1
1
<?php namespace Pz\LaravelDoctrine\Rest;
2
3
use Pz\Doctrine\Rest\Response\FractalResponse;
4
use Pz\Doctrine\Rest\RestRequestInterface;
5
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
6
7
class RestResponse extends FractalResponse
8
{
9
    /**
10
     * @param RestRequestInterface $request
11
     * @throws NotFoundHttpException
12
     * @return void
13
     */
14 2
    public function notFound(RestRequestInterface $request)
15
    {
16 2
        throw new NotFoundHttpException();
17
    }
18
}
19