Passed
Push — master ( cbb991...62e47c )
by Albert
07:16 queued 05:08
created

FrameworkNotSupportException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace SwooleTW\Http\Exceptions;
4
5
/**
6
 * Class FrameworkNotSupportException
7
 */
8
class FrameworkNotSupportException extends \RuntimeException
9
{
10
    /**
11
     * FrameworkNotSupportException constructor.
12
     *
13
     * @param string $framework
14
     * @param int $code
15
     * @param \Throwable|null $previous
16
     */
17
    public function __construct(string $framework, int $code = 0, \Throwable $previous = null)
18
    {
19
        parent::__construct("Not support framework '{$framework}'", $code, $previous);
20
    }
21
}