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

FrameworkNotSupportException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
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
}