Completed
Push — master ( 1bcbc5...8580f6 )
by Laurent
02:25
created

StockMovement::getType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
4
namespace Dolibarr\Client\Domain\StockMovement;
5
6
use JMS\Serializer\Annotation as JMS;
7
8
/**
9
 * @package Dolibarr\Client\Domain\StockMovement
10
 */
11
final class StockMovement
12
{
13
14
    /**
15
     * @var string
16
     *
17
     * @JMS\Type("string")
18
     * @JMS\SerializedName("product_id")
19
     */
20
    private $productId;
21
22
    /**
23
     * @var string
24
     *
25
     * @JMS\Type("string")
26
     * @JMS\SerializedName("warehouse_id")
27
     */
28
    private $warehouseId;
29
30
    /**
31
     * @var int
32
     *
33
     * @JMS\Type("integer")
34
     * @JMS\SerializedName("qty")
35
     */
36
    private $quantity;
37
38
    /**
39
     * @var string|null
40
     *
41
     * @JMS\Type("string")
42
     * @JMS\SerializedName("movementlabel")
43
     */
44
    private $label;
45
46
    /**
47
     * @var string|null
48
     *
49
     * @JMS\Type("string")
50
     * @JMS\SerializedName("movementcode")
51
     */
52
    private $inventoryCode;
53
54
    /**
55
     * @var string|null
56
     *
57
     * @JMS\Type("string")
58
     * @JMS\SerializedName("lot")
59
     */
60
    private $lot;
61
62
    /**
63
     * @return string
64
     */
65
    public function getProductId()
66
    {
67
        return $this->productId;
68
    }
69
70
    /**
71
     * @param string $productId
72
     */
73
    public function setProductId($productId)
74
    {
75
        $this->productId = $productId;
76
    }
77
78
    /**
79
     * @return string
80
     */
81
    public function getWarehouseId()
82
    {
83
        return $this->warehouseId;
84
    }
85
86
    /**
87
     * @param string $warehouseId
88
     */
89
    public function setWarehouseId($warehouseId)
90
    {
91
        $this->warehouseId = $warehouseId;
92
    }
93
94
    /**
95
     * @return int
96
     */
97
    public function getQuantity()
98
    {
99
        return $this->quantity;
100
    }
101
102
    /**
103
     * @param int $quantity
104
     */
105
    public function setQuantity($quantity)
106
    {
107
        $this->quantity = $quantity;
108
    }
109
110
    /**
111
     * @return string|null
112
     */
113
    public function getLabel()
114
    {
115
        return $this->label;
116
    }
117
118
    /**
119
     * @param string|null $label
120
     */
121
    public function setLabel($label)
122
    {
123
        $this->label = $label;
124
    }
125
126
    /**
127
     * @return string|null
128
     */
129
    public function getInventoryCode()
130
    {
131
        return $this->inventoryCode;
132
    }
133
134
    /**
135
     * @param string|null $inventoryCode
136
     */
137
    public function setInventoryCode($inventoryCode)
138
    {
139
        $this->inventoryCode = $inventoryCode;
140
    }
141
142
    /**
143
     * @return string|null
144
     */
145
    public function getLot()
146
    {
147
        return $this->lot;
148
    }
149
150
    /**
151
     * @param string|null $lot
152
     */
153
    public function setLot($lot)
154
    {
155
        $this->lot = $lot;
156
    }
157
}
158