Order::getDocumentElements()   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
c 0
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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\AddActionTypeTrait;
15
16
class Order extends AbstractDocument
17
{
18
    use AddActionTypeTrait;
19
20 11
    public function getImportRoot(): string
21
    {
22 11
        return 'lst:order';
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28 10
    protected function getDocumentElements(): array
29
    {
30 10
        return \array_merge(parent::getDocumentElements(), ['actionType']);
31
    }
32
33
    /**
34
     * {@inheritdoc}
35
     */
36 11
    protected function getDocumentNamespace(): string
37
    {
38 11
        return 'ord';
39
    }
40
41
    /**
42
     * {@inheritdoc}
43
     */
44 11
    protected function getDocumentName(): string
45
    {
46 11
        return 'order';
47
    }
48
}
49