IndividualPrice   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getImportRoot() 0 3 1
A getXML() 0 3 1
A configureOptions() 0 1 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;
13
14
use Riesenia\Pohoda\Common\OptionsResolver;
15
16
class IndividualPrice extends AbstractAgenda
17
{
18 1
    public function getImportRoot(): string
19
    {
20 1
        return 'lst:individualPrice';
21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26 1
    public function getXML(): \SimpleXMLElement
27
    {
28 1
        throw new \DomainException('Individual prices import is currently not supported.');
29
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34 1
    protected function configureOptions(OptionsResolver $resolver): void {}
35
}
36