Property   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 23
ccs 8
cts 8
cp 1
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 2 1
A getValue() 0 2 1
A __construct() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Ely\Mojang\Response\Properties;
5
6
class Property {
7
8
    /**
9
     * @var string
10
     */
11
    public $name;
12
13
    /**
14
     * @var string
15
     */
16
    public $value;
17
18 6
    public function __construct(array $prop) {
19 6
        $this->name = $prop['name'];
20 6
        $this->value = $prop['value'];
21 6
    }
22
23 4
    public function getName(): string {
24 4
        return $this->name;
25
    }
26
27 2
    public function getValue(): string {
28 2
        return $this->value;
29
    }
30
31
}
32