1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class Measurement
9 *
10 * Measurement to represent item dimensions like length, width, height and weight etc.
11 *
12 * @package PayPal\Api
13 *
14 * @property string value
15 * @property string unit
16 */
17 class Measurement extends PayPalModel
18 {
19 /**
20 * Value this measurement represents.
21 *
22 * @param string $value
23 *
24 * @return $this
25 */
26 public function setValue($value)
27 {
28 $this->value = $value;
29 return $this;
30 }
31
32 /**
33 * Value this measurement represents.
34 *
35 * @return string
36 */
37 public function getValue()
38 {
39 return $this->value;
40 }
41
42 /**
43 * Unit in which the value is represented.
44 *
45 * @param string $unit
46 *
47 * @return $this
48 */
49 public function setUnit($unit)
50 {
51 $this->unit = $unit;
52 return $this;
53 }
54
55 /**
56 * Unit in which the value is represented.
57 *
58 * @return string
59 */
60 public function getUnit()
61 {
62 return $this->unit;
63 }
64
65 }
66