1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class NameValuePair
9 *
10 * Used to define a type for name-value pairs. The use of name value pairs in an API should be limited and approved by architecture.
11 *
12 * @package PayPal\Api
13 *
14 * @property string name
15 * @property string value
16 */
17 class NameValuePair extends PayPalModel
18 {
19 /**
20 * Key for the name value pair. The value name types should be correlated
21 *
22 * @param string $name
23 *
24 * @return $this
25 */
26 public function setName($name)
27 {
28 $this->name = $name;
29 return $this;
30 }
31
32 /**
33 * Key for the name value pair. The value name types should be correlated
34 *
35 * @return string
36 */
37 public function getName()
38 {
39 return $this->name;
40 }
41
42 /**
43 * Value for the name value pair.
44 *
45 * @param string $value
46 *
47 * @return $this
48 */
49 public function setValue($value)
50 {
51 $this->value = $value;
52 return $this;
53 }
54
55 /**
56 * Value for the name value pair.
57 *
58 * @return string
59 */
60 public function getValue()
61 {
62 return $this->value;
63 }
64
65 }
66