Property::getValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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