Order::getDefaultDto()   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
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