Passed
Push — master ( e05223...e18482 )
by
unknown
06:52 queued 03:38
created

NotNull   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getHandler() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Validator\Tests\Support\Rule\NotNullRule;
6
7
use Attribute;
8
use Yiisoft\Validator\RuleInterface;
9
10
#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
11
final class NotNull implements RuleInterface
12
{
13
    public function getHandler(): string
14
    {
15
        return NotNullHandler::class;
16
    }
17
}
18