Order   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getDocumentNamespace() 0 3 1
A getImportRoot() 0 3 1
A getDefaultDto() 0 3 1
A getDocumentName() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace kalanis\Pohoda;
6
7
use kalanis\Pohoda\Common\AddActionTypeTrait;
8
9
/**
10
 * @property Order\OrderDto $data
11
 */
12
class Order extends AbstractDocument
13
{
14
    use AddActionTypeTrait;
15
16 11
    public function getImportRoot(): string
17
    {
18 11
        return 'lst:order';
19
    }
20
21 11
    protected function getDocumentNamespace(): string
22
    {
23 11
        return 'ord';
24
    }
25
26 11
    protected function getDocumentName(): string
27
    {
28 11
        return 'order';
29
    }
30
31 11
    protected function getDefaultDto(): Common\Dtos\AbstractDto
32
    {
33 11
        return new Order\OrderDto();
34
    }
35
}
36