Passed
Pull Request — master (#1)
by one
07:55
created

FormInvalidException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
/*
4
 * (c) Lukasz D. Tulikowski <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
declare(strict_types=1);
11
12
namespace App\Exception;
13
14
class FormInvalidException extends ApiException
15
{
16
    public const DEFAULT_MESSAGE = 'Submitted form did not pass validation.';
17
18
    /**
19
     * @param string $message
20
     * @param int $code
21
     * @param array $data
22
     */
23 4
    public function __construct(string $message, int $code, array $data = [])
24
    {
25 4
        parent::__construct($message, $code, $data);
26 4
    }
27
}
28