Bank::getImportRoot()   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
class Bank extends AbstractDocument
8
{
9 5
    public function getImportRoot(): string
10
    {
11 5
        return 'lst:bank';
12
    }
13
14
    /**
15
     * {@inheritdoc}
16
     */
17 5
    protected function getDocumentNamespace(): string
18
    {
19 5
        return 'bnk';
20
    }
21
22
    /**
23
     * {@inheritdoc}
24
     */
25 5
    protected function getDocumentName(): string
26
    {
27 5
        return 'bank';
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33 6
    protected function getDefaultDto(): Common\Dtos\AbstractDto
34
    {
35 6
        return new Bank\BankDto();
36
    }
37
}
38