Passed
Branch psalm-3 (d5d890)
by Wilmer
02:56
created

Param::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 0
dl 0
loc 2
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Db\Command;
6
7
final class Param implements ParamInterface
8
{
9
    public function __construct(private int|string $name, private mixed $value, private int $type)
10
    {
11
    }
12
13
    public function getName(): int|string
14
    {
15
        return $this->name;
16
    }
17
18
    public function getValue(): mixed
19
    {
20
        return $this->value;
21
    }
22
23
    public function getType(): int
24
    {
25
        return $this->type;
26
    }
27
}
28