Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/*******************************************************************************
3
 *  Copyright 2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
 *  Licensed under the Apache License, Version 2.0 (the "License");
5
 *
6
 *  You may not use this file except in compliance with the License.
7
 *  You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
8
 *  This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
 *  CONDITIONS OF ANY KIND, either express or implied. See the License for the
10
 *  specific language governing permissions and limitations under the License.
11
 * *****************************************************************************
12
 */
13
 
14
 
15
/**
16
 *  @see CheckoutByAmazon_Service_Model
17
 */
18
require_once ('CheckoutByAmazon/Service/Model.php');
19
 
20
 
21
 
22
/**
23
 * CheckoutByAmazon_Service_Model_PhysicalProductAttributes
24
 *
25
 * Properties:
26
 * <ul>
27
 *
28
 * <li>Weight: CheckoutByAmazon_Service_Model_Weight</li>
29
 * <li>Condition: string</li>
30
 * <li>GiftOption: string</li>
31
 * <li>GiftMessage: string</li>
32
 * <li>DeliveryMethod: CheckoutByAmazon_Service_Model_DeliveryMethod</li>
33
 * <li>ItemCharges: CheckoutByAmazon_Service_Model_Charges</li>
34
 *
35
 * </ul>
36
 */
37
class CheckoutByAmazon_Service_Model_PhysicalProductAttributes extends CheckoutByAmazon_Service_Model
38
{
39
 
40
 
41
    /**
42
     * Construct new CheckoutByAmazon_Service_Model_PhysicalProductAttributes
43
     *
44
     * @param mixed $data DOMElement or Associative Array to construct from.
45
     *
46
     * Valid properties:
47
     * <ul>
48
     *
49
     * <li>Weight: CheckoutByAmazon_Service_Model_Weight</li>
50
     * <li>Condition: string</li>
51
     * <li>GiftOption: string</li>
52
     * <li>GiftMessage: string</li>
53
     * <li>DeliveryMethod: CheckoutByAmazon_Service_Model_DeliveryMethod</li>
54
     * <li>ItemCharges: CheckoutByAmazon_Service_Model_Charges</li>
55
     *
56
     * </ul>
57
     */
58
    public function __construct($data = null)
59
    {
60
        $this->_fields = array (
61
        'Weight' => array('FieldValue' => null, 'FieldType' => 'CheckoutByAmazon_Service_Model_Weight'),
62
        'Condition' => array('FieldValue' => null, 'FieldType' => 'string'),
63
        'GiftOption' => array('FieldValue' => null, 'FieldType' => 'string'),
64
        'GiftMessage' => array('FieldValue' => null, 'FieldType' => 'string'),
65
        'DeliveryMethod' => array('FieldValue' => null, 'FieldType' => 'CheckoutByAmazon_Service_Model_DeliveryMethod'),
66
        'ItemCharges' => array('FieldValue' => null, 'FieldType' => 'CheckoutByAmazon_Service_Model_Charges'),
67
        );
68
        parent::__construct($data);
69
    }
70
 
71
        /**
72
     * Gets the value of the Weight.
73
     *
74
     * @return Weight Weight
75
     */
76
    public function getWeight()
77
    {
78
        return $this->_fields['Weight']['FieldValue'];
79
    }
80
 
81
    /**
82
     * Sets the value of the Weight.
83
     *
84
     * @param Weight Weight
85
     * @return void
86
     */
87
    public function setWeight($value)
88
    {
89
        $this->_fields['Weight']['FieldValue'] = $value;
90
        return;
91
    }
92
 
93
 
94
    /**
95
     * Checks if Weight  is set
96
     *
97
     * @return bool true if Weight property is set
98
     */
99
    public function isSetWeight()
100
    {
101
        return !is_null($this->_fields['Weight']['FieldValue']);
102
 
103
    }
104
 
105
    /**
106
     * Gets the value of the Condition property.
107
     *
108
     * @return string Condition
109
     */
110
    public function getCondition()
111
    {
112
        return $this->_fields['Condition']['FieldValue'];
113
    }
114
 
115
    /**
116
     * Sets the value of the Condition property.
117
     *
118
     * @param string Condition
119
     * @return this instance
120
     */
121
    public function setCondition($value)
122
    {
123
        $this->_fields['Condition']['FieldValue'] = $value;
124
        return $this;
125
    }
126
 
127
 
128
 
129
    /**
130
     * Checks if Condition is set
131
     *
132
     * @return bool true if Condition  is set
133
     */
134
    public function isSetCondition()
135
    {
136
        return !is_null($this->_fields['Condition']['FieldValue']);
137
    }
138
 
139
    /**
140
     * Gets the value of the GiftOption property.
141
     *
142
     * @return string GiftOption
143
     */
144
    public function getGiftOption()
145
    {
146
        return $this->_fields['GiftOption']['FieldValue'];
147
    }
148
 
149
    /**
150
     * Sets the value of the GiftOption property.
151
     *
152
     * @param string GiftOption
153
     * @return this instance
154
     */
155
    public function setGiftOption($value)
156
    {
157
        $this->_fields['GiftOption']['FieldValue'] = $value;
158
        return $this;
159
    }
160
 
161
 
162
    /**
163
     * Checks if GiftOption is set
164
     *
165
     * @return bool true if GiftOption  is set
166
     */
167
    public function isSetGiftOption()
168
    {
169
        return !is_null($this->_fields['GiftOption']['FieldValue']);
170
    }
171
 
172
    /**
173
     * Gets the value of the GiftMessage property.
174
     *
175
     * @return string GiftMessage
176
     */
177
    public function getGiftMessage()
178
    {
179
        return $this->_fields['GiftMessage']['FieldValue'];
180
    }
181
 
182
    /**
183
     * Sets the value of the GiftMessage property.
184
     *
185
     * @param string GiftMessage
186
     * @return this instance
187
     */
188
    public function setGiftMessage($value)
189
    {
190
        $this->_fields['GiftMessage']['FieldValue'] = $value;
191
        return $this;
192
    }
193
 
194
 
195
    /**
196
     * Checks if GiftMessage is set
197
     *
198
     * @return bool true if GiftMessage  is set
199
     */
200
    public function isSetGiftMessage()
201
    {
202
        return !is_null($this->_fields['GiftMessage']['FieldValue']);
203
    }
204
 
205
    /**
206
     * Gets the value of the DeliveryMethod.
207
     *
208
     * @return DeliveryMethod DeliveryMethod
209
     */
210
    public function getDeliveryMethod()
211
    {
212
        return $this->_fields['DeliveryMethod']['FieldValue'];
213
    }
214
 
215
    /**
216
     * Sets the value of the DeliveryMethod.
217
     *
218
     * @param DeliveryMethod DeliveryMethod
219
     * @return void
220
     */
221
    public function setDeliveryMethod($value)
222
    {
223
        $this->_fields['DeliveryMethod']['FieldValue'] = $value;
224
        return;
225
    }
226
 
227
    /**
228
     * Checks if DeliveryMethod  is set
229
     *
230
     * @return bool true if DeliveryMethod property is set
231
     */
232
    public function isSetDeliveryMethod()
233
    {
234
        return !is_null($this->_fields['DeliveryMethod']['FieldValue']);
235
 
236
    }
237
 
238
    /**
239
     * Gets the value of the ItemCharges.
240
     *
241
     * @return Charges ItemCharges
242
     */
243
    public function getItemCharges()
244
    {
245
        return $this->_fields['ItemCharges']['FieldValue'];
246
    }
247
 
248
    /**
249
     * Sets the value of the ItemCharges.
250
     *
251
     * @param Charges ItemCharges
252
     * @return void
253
     */
254
    public function setItemCharges($value)
255
    {
256
        $this->_fields['ItemCharges']['FieldValue'] = $value;
257
        return;
258
    }
259
 
260
    /**
261
     * Checks if ItemCharges  is set
262
     *
263
     * @return bool true if ItemCharges property is set
264
     */
265
    public function isSetItemCharges()
266
    {
267
        return !is_null($this->_fields['ItemCharges']['FieldValue']);
268
 
269
    }
270
 
271
}
272
?>