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

StubDumpedRule::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
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