1 | <?php |
||
16 | class Shipping |
||
17 | { |
||
18 | use SerializerTrait; |
||
19 | |||
20 | /** |
||
21 | * @Serializer\Type("integer") |
||
22 | * |
||
23 | * @var int |
||
24 | */ |
||
25 | private $type; |
||
26 | |||
27 | /** |
||
28 | * @Serializer\Type("PHPSC\PagSeguro\Customer\Address") |
||
29 | * |
||
30 | * @var Address |
||
31 | */ |
||
32 | private $address; |
||
33 | |||
34 | /** |
||
35 | * @Serializer\XmlElement(cdata=false) |
||
36 | * |
||
37 | * @var float |
||
38 | */ |
||
39 | private $cost; |
||
40 | |||
41 | /** |
||
42 | * @param int $type |
||
43 | * @param Address $address |
||
44 | * @param float $cost |
||
45 | */ |
||
46 | 12 | public function __construct($type, Address $address = null, $cost = null) |
|
55 | |||
56 | /** |
||
57 | * @return number |
||
58 | */ |
||
59 | 3 | public function getType() |
|
63 | |||
64 | 12 | protected function setType($type) |
|
72 | |||
73 | /** |
||
74 | * @return Address |
||
75 | */ |
||
76 | 3 | public function getAddress() |
|
80 | |||
81 | /** |
||
82 | * @return string |
||
83 | */ |
||
84 | 3 | public function getCost() |
|
88 | } |
||
89 |