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

Param   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 3 1
A __construct() 0 2 1
A getValue() 0 3 1
A getName() 0 3 1
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