IndividualPrice::getDefaultDto()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace kalanis\Pohoda;
6
7
use kalanis\PohodaException;
8
9
class IndividualPrice extends AbstractAgenda
10
{
11 1
    public function getImportRoot(): string
12
    {
13 1
        return 'lst:individualPrice';
14
    }
15
16
    /**
17
     * {@inheritdoc}
18
     */
19 1
    public function getXML(): \SimpleXMLElement
20
    {
21 1
        throw new PohodaException('Individual 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