1 | <?php |
||
16 | class Charge |
||
17 | { |
||
18 | use SerializerTrait; |
||
19 | |||
20 | /** |
||
21 | * @Serializer\SerializedName("preApprovalCode") |
||
22 | * @Serializer\XmlElement(cdata=false) |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | private $subscriptionCode; |
||
27 | |||
28 | /** |
||
29 | * @Serializer\Type("ArrayCollection<PHPSC\PagSeguro\Items\Item>") |
||
30 | * @Serializer\XmlList(entry="item") |
||
31 | * @Serializer\SerializedName("items") |
||
32 | * |
||
33 | * @var ItemCollection |
||
34 | */ |
||
35 | private $items; |
||
36 | |||
37 | /** |
||
38 | * @Serializer\XmlElement(cdata=false) |
||
39 | * |
||
40 | * @var string |
||
41 | */ |
||
42 | private $reference; |
||
43 | |||
44 | /** |
||
45 | * @param ItemCollection $items |
||
46 | */ |
||
47 | 5 | public function __construct(ItemCollection $items = null) |
|
51 | |||
52 | /** |
||
53 | * @return string |
||
54 | */ |
||
55 | 2 | public function getSubscriptionCode() |
|
59 | |||
60 | /** |
||
61 | * @param string $subscriptionCode |
||
62 | */ |
||
63 | 3 | public function setSubscriptionCode($subscriptionCode) |
|
67 | |||
68 | /** |
||
69 | * @return ItemCollection |
||
70 | */ |
||
71 | 2 | public function getItems() |
|
75 | |||
76 | /** |
||
77 | * @return string |
||
78 | */ |
||
79 | 2 | public function getReference() |
|
83 | |||
84 | /** |
||
85 | * @param string $reference |
||
86 | */ |
||
87 | 2 | public function setReference($reference) |
|
91 | } |
||
92 |