Passed
Push — master ( 221c35...fdb910 )
by Petr
02:59
created

Represents   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 9
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace kalanis\Pohoda\Common\Attributes;
4
5
use Attribute;
6
7
/**
8
 * The variable is used as representation of different one
9
 */
10
#[Attribute(Attribute::TARGET_PROPERTY)]
11
final class Represents
12
{
13
    /**
14
     * @param string|string[] $differentVariable
15
     */
16 3
    public function __construct(
17
        public readonly string|array $differentVariable,
18 3
    ) {}
19
}
20