ActionPrice   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
eloc 4
dl 0
loc 21
c 0
b 0
f 0
ccs 6
cts 6
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getXML() 0 3 1
A getImportRoot() 0 3 1
A getDefaultDto() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace kalanis\Pohoda;
6
7
use kalanis\PohodaException;
8
9
class ActionPrice extends AbstractAgenda
10
{
11 1
    public function getImportRoot(): string
12
    {
13 1
        return 'lst:actionPrice';
14
    }
15
16
    /**
17
     * {@inheritdoc}
18
     */
19 1
    public function getXML(): \SimpleXMLElement
20
    {
21 1
        throw new PohodaException('Action prices import is currently not supported.');
22
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27 2
    protected function getDefaultDto(): Common\Dtos\AbstractDto
28
    {
29 2
        return new Common\Dtos\EmptyDto();
30
    }
31
}
32