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

FormValidation   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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