Completed
Push — feature/EVO-4597-rabbitmq-hand... ( e70ebe...b48550 )
by
unknown
103:19 queued 97:29
created

NotFoundException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 15
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * Not found exception class
4
 */
5
6
namespace Graviton\ExceptionBundle\Exception;
7
8
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
9
use Symfony\Component\HttpFoundation\Response;
10
11
/**
12
 * Not found exception class
13
 *
14
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
15
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
16
 * @link     http://swisscom.ch
17
 */
18
final class NotFoundException extends NotFoundHttpException implements RestExceptionInterface
19
{
20
    use RestExceptionTrait;
21
22
    /**
23
     * Constructor
24
     *
25
     * @param string     $message Error message
26
     * @param \Exception $prev    Previous Exception
0 ignored issues
show
Documentation introduced by
Should the type for parameter $prev not be \Exception|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
27
     */
28 26
    public function __construct($message = "Not Found", $prev = null)
29
    {
30 26
        parent::__construct($message, $prev);
31 26
    }
32
}
33