Index::notFound()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 7
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Admin\Http\Controllers\Api;
6
7
use Opulence\Http\Responses\Response;
8
use Opulence\Http\Responses\ResponseHeaders;
9
use Opulence\Routing\Controller;
10
11
class Index extends Controller
12
{
13
    /**
14
     * @return Response
15
     */
16
    public function notFound(): Response
17
    {
18
        $response = new Response();
19
20
        $response->setStatusCode(ResponseHeaders::HTTP_NOT_IMPLEMENTED);
21
22
        return $response;
23
    }
24
}
25