Passed
Push — master ( bbc85b...f0bc06 )
by
04:59
created

TexturesProperty::getSignature()   A

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 TexturesProperty extends Property {
7
8
    /**
9
     * @var string|null
10
     */
11
    private $signature;
12
13 3
    public function __construct(array $prop) {
14 3
        parent::__construct($prop);
15 3
        $this->signature = $prop['signature'] ?? null;
16 3
    }
17
18 2
    public function getTextures(): TexturesPropertyValue {
19 2
        return TexturesPropertyValue::createFromRawTextures($this->value);
20
    }
21
22 2
    public function getSignature(): ?string {
23 2
        return $this->signature;
24
    }
25
26
}
27