Code Duplication    Length = 11-11 lines in 3 locations

src/Exception/HTTP/ForbiddenException.php 1 location

@@ 14-24 (lines=11) @@
11
 * @author Dmitry Kolodko <[email protected]>
12
 * @since 1.0
13
 */
14
class ForbiddenException extends \Exception {
15
    use StaticConstructors;
16
17
    public function __construct(string $message = "", int $code = 403, Throwable $previous = null) {
18
        parent::__construct($message, $code, $previous);
19
    }
20
21
    public function getName() {
22
        return 'Resource Is Forbidden';
23
    }
24
}

src/Exception/HTTP/InternalServerException.php 1 location

@@ 13-23 (lines=11) @@
10
 * @author Dmitry Kolodko <[email protected]>
11
 * @since 1.0
12
 */
13
class InternalServerException extends \Exception {
14
    use StaticConstructors;
15
16
    public function __construct(string $message = "", int $code = 500, \Throwable $previous = null) {
17
        parent::__construct($message, $code, $previous);
18
    }
19
20
    public function getName() {
21
        return 'Resource Not Found';
22
    }
23
}

src/Exception/HTTP/NotFoundException.php 1 location

@@ 13-23 (lines=11) @@
10
 * @author Dmitry Kolodko <[email protected]>
11
 * @since 1.0
12
 */
13
class NotFoundException extends \Exception {
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
}