Total Complexity | 12 |
Total Lines | 97 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
5 | trait AddressSettlementProperty |
||
6 | { |
||
7 | protected $AreaRef; |
||
8 | protected $RegionRef; |
||
9 | protected $Ref; |
||
10 | protected $Warehouse = false; |
||
11 | |||
12 | |||
13 | /** |
||
14 | * @param string $AreaRef |
||
15 | * @return this |
||
16 | */ |
||
17 | public function filterAreaRef($AreaRef) |
||
18 | { |
||
19 | $this->AreaRef = $AreaRef; |
||
20 | |||
21 | return $this; |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @return this |
||
26 | */ |
||
27 | public function getAreaRef() |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param string $RegionRef |
||
38 | * @return this |
||
39 | */ |
||
40 | public function filterRegionRef($RegionRef) |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @return this |
||
49 | */ |
||
50 | public function getRegionRef() |
||
51 | { |
||
52 | if ($this->RegionRef) { |
||
53 | $this->methodProperties['RegionRef'] = $this->RegionRef; |
||
1 ignored issue
–
show
|
|||
54 | } |
||
55 | |||
56 | return $this; |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * @return this |
||
61 | */ |
||
62 | public function filterWarehouse() |
||
63 | { |
||
64 | $this->Warehouse = true; |
||
65 | |||
66 | return $this; |
||
67 | } |
||
68 | |||
69 | /** |
||
70 | * @return this |
||
71 | */ |
||
72 | public function getWarehouse() |
||
79 | } |
||
80 | |||
81 | /** |
||
82 | * @param string $ref |
||
83 | * @return this |
||
84 | */ |
||
85 | public function filterRef($ref) |
||
90 | } |
||
91 | |||
92 | /** |
||
93 | * @return this |
||
94 | */ |
||
95 | public function getRef() |
||
105 |