ExtradataParameter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 2
b 0
f 0
dl 0
loc 20
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace Formularium;
4
5
/**
6
 * Allowed arguments
7
 */
8
final class ExtradataParameter
9
{
10
    /**
11
     * @var string
12
     */
13
    public $name;
14
15
    /**
16
     * @var mixed
17
     */
18
    public $value;
19
20
    /**
21
     * @param string $name
22
     * @param mixed $value
23
     */
24 3
    public function __construct(string $name, $value)
25
    {
26 3
        $this->name = $name;
27 3
        $this->value = $value;
28 3
    }
29
}
30