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

Represents::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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