Completed
Pull Request — master (#1)
by one
09:53
created

FormInvalidException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
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
    public function __construct(string $message, int $code, array $data = [])
24
    {
25
        parent::__construct($message, $code, $data);
26
    }
27
}
28