Passed
Pull Request — master (#3079)
by Antoine
04:14
created

NotFoundAction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace ApiPlatform\Core\Action;
15
16
use Symfony\Component\HttpFoundation\Response;
17
18
/**
19
 * Not found action.
20
 *
21
 * @author Antoine Bluchet <[email protected]>
22
 */
23
final class NotFoundAction
24
{
25
    public function __invoke()
26
    {
27
        return new Response(null, 404);
28
    }
29
}
30