DocumentList   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 3
Bugs 1 Features 0
Metric Value
eloc 7
c 3
b 1
f 0
dl 0
loc 36
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A showUnassembledCargo() 0 5 1
A showFullList() 0 5 1
A showRedeliveryMoney() 0 5 1
1
<?php
2
3
namespace Daaner\NovaPoshta\Traits;
4
5
trait DocumentList
6
{
7
    /**
8
     * Отобразить полный список.
9
     *
10
     * @return $this
11
     */
12
    public function showFullList(): self
13
    {
14
        $this->methodProperties['GetFullList'] = 1;
15
16
        return $this;
17
    }
18
19
    /**
20
     * Фильтр присутствия обратной доставки.
21
     *
22
     * @return $this
23
     */
24
    public function showRedeliveryMoney(): self
25
    {
26
        $this->methodProperties['RedeliveryMoney'] = 1;
27
28
        return $this;
29
    }
30
31
    /**
32
     * Фильтр полного списка всех актуальных ЭН (по которым не написано заявление на возврат или утилизацию) не забранных получателями посылок.
33
     *
34
     * @return $this
35
     */
36
    public function showUnassembledCargo(): self
37
    {
38
        $this->methodProperties['UnassembledCargo'] = 1;
39
40
        return $this;
41
    }
42
}
43