1 | <?php |
||
11 | final class RequestData extends AbstractRequestData |
||
12 | { |
||
13 | /** |
||
14 | * The customer ID. |
||
15 | * |
||
16 | * @var integer |
||
17 | * |
||
18 | * @JMS\Type("integer") |
||
19 | * @JMS\SerializedName("CUSTOMER_ID") |
||
20 | */ |
||
21 | protected $customerId; |
||
22 | |||
23 | /** |
||
24 | * The customer ID. |
||
25 | * |
||
26 | * @var float |
||
27 | * |
||
28 | * @JMS\Type("float") |
||
29 | * @JMS\SerializedName("AMOUNT") |
||
30 | */ |
||
31 | protected $amount; |
||
32 | |||
33 | /** |
||
34 | * Constructor. |
||
35 | * |
||
36 | * @param integer $customerId The customer ID. |
||
37 | * @param float $amount The amount of credit to add. |
||
38 | */ |
||
39 | 3 | public function __construct($customerId, $amount) |
|
44 | |||
45 | /** |
||
46 | * Get the customer ID. |
||
47 | * |
||
48 | * @return integer |
||
49 | */ |
||
50 | public function getCustomerId() |
||
54 | |||
55 | /** |
||
56 | * Set the customer ID. |
||
57 | * |
||
58 | * @param integer $customerId The customer ID. |
||
59 | */ |
||
60 | 3 | public function setCustomerId($customerId) |
|
64 | |||
65 | /** |
||
66 | * Get the amount. |
||
67 | * |
||
68 | * @return float |
||
69 | */ |
||
70 | public function getAmount() |
||
74 | |||
75 | /** |
||
76 | * Set the amount. |
||
77 | * |
||
78 | * @param float $amount The amount to add. |
||
79 | */ |
||
80 | 3 | public function setAmount($amount) |
|
84 | } |
||
85 |