Passed
Push — master ( 1c0e23...afe80e )
by Andrey
10:06
created

DocumentList   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 31
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
     * @return this
10
     */
11
    public function showFullList()
12
    {
13
        $this->methodProperties['GetFullList'] = 1;
1 ignored issue
show
Bug Best Practice introduced by
The property methodProperties does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
14
15
        return $this;
16
    }
17
18
    /**
19
     * @return this
20
     */
21
    public function showRedeliveryMoney()
22
    {
23
        $this->methodProperties['RedeliveryMoney'] = 1;
1 ignored issue
show
Bug Best Practice introduced by
The property methodProperties does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
24
25
        return $this;
26
    }
27
28
    /**
29
     * @return this
30
     */
31
    public function showUnassembledCargo()
32
    {
33
        $this->methodProperties['UnassembledCargo'] = 1;
1 ignored issue
show
Bug Best Practice introduced by
The property methodProperties does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
34
35
        return $this;
36
    }
37
38
}
39