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

StubDumpedRule   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A getHandler() 0 3 1
A __construct() 0 2 1
A getOptions() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Validator\Tests\Support\Rule\StubRule;
6
7
use Yiisoft\Validator\DumpedRuleInterface;
8
9
final class StubDumpedRule implements DumpedRuleInterface
10
{
11
    public function __construct(private string $name, private array $options)
12
    {
13
    }
14
15
    public function getName(): string
16
    {
17
        return $this->name;
18
    }
19
20
    public function getOptions(): array
21
    {
22
        return $this->options;
23
    }
24
25
    public function getHandler(): string
26
    {
27
        return StubRuleHandler::class;
28
    }
29
}
30