Passed
Pull Request — 1.x (#24)
by
unknown
12:37
created

FormValidation::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * This file is part of the Ray.WebFormModule package.
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
8
namespace Ray\WebFormModule\Annotation;
9
10
use Attribute;
11
12
#[Attribute(Attribute::TARGET_METHOD)]
13
final class FormValidation extends AbstractValidation
14
{
15
    public function __construct(
16
        string $form = 'form',
17
        public bool $antiCsrf = false,
18
        public string|null $onFailure = null
19
    ) {
20
        parent::__construct($form);
21
    }
22
}
23