Offer   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
eloc 5
dl 0
loc 29
c 0
b 0
f 0
ccs 8
cts 8
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getImportRoot() 0 3 1
A getDocumentName() 0 3 1
A getDocumentNamespace() 0 3 1
A getDefaultDto() 0 3 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