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

RestResponse::notFound()   A

Complexity

Conditions 1
Paths 0

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 0
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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