FrameworkNotSupportException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 12
rs 10
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
}