Passed
Push — master ( 1b54b9...ff455f )
by Sam
10:10 queued 11s
created

RdataTrait::decodeName()   B

Complexity

Conditions 6
Paths 14

Size

Total Lines 37
Code Lines 23

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 24
CRAP Score 6

Importance

Changes 0
Metric Value
cc 6
eloc 23
nc 14
nop 2
dl 0
loc 37
ccs 24
cts 24
cp 1
crap 6
rs 8.9297
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of Badcow DNS Library.
7
 *
8
 * (c) Samuel Williams <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Badcow\DNS\Rdata;
15
16
trait RdataTrait
17
{
18
    /**
19
     * {@inheritdoc}
20
     */
21 43
    public function getType(): string
22
    {
23
        /* @const TYPE */
24 43
        return static::TYPE;
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30 17
    public function getTypeCode(): int
31
    {
32
        /* @const TYPE_CODE */
33 17
        return static::TYPE_CODE;
34
    }
35
}
36