Completed
Push — master ( a92ee2...268555 )
by Dmitry
04:05
created

NotFoundException::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 3
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 3
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace PHPKitchen\Platform\Exception\HTTP;
4
5
use PHPKitchen\Platform\Exception\Mixin\StaticConstructors;
6
7
/**
8
 * Represents exception caused by an invalid route.
9
 *
10
 * @author Dmitry Kolodko <[email protected]>
11
 * @since 1.0
12
 */
13 View Code Duplication
class NotFoundException extends \Exception {
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
14
    use StaticConstructors;
15
16
    public function __construct(string $message = "", int $code = 404, \Throwable $previous = null) {
17
        parent::__construct($message, $code, $previous);
18
    }
19
20
    public function getName() {
21
        return 'Resource Not Found';
22
    }
23
}