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