AbstractPart   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 5
c 0
b 0
f 0
dl 0
loc 19
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setNodePrefix() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of riesenia/pohoda package.
5
 *
6
 * Licensed under the MIT License
7
 * (c) RIESENIA.com
8
 */
9
10
declare(strict_types=1);
11
12
namespace Riesenia\Pohoda\Document;
13
14
use Riesenia\Pohoda\AbstractAgenda;
15
use Riesenia\Pohoda\Common\SetNamespaceTrait;
16
17
abstract class AbstractPart extends AbstractAgenda
18
{
19
    use SetNamespaceTrait;
20
21
    protected ?string $nodePrefix = null;
22
23
    /** @var string[] */
24
    protected array $elements = [];
25
26
    /**
27
     * Set node name prefix.
28
     *
29
     * @param string $prefix
30
     *
31
     * @return void
32
     */
33 57
    public function setNodePrefix(string $prefix): void
34
    {
35 57
        $this->nodePrefix = $prefix;
36
    }
37
}
38