@@ 12-71 (lines=60) @@ | ||
9 | * Class GetByIdResponse |
|
10 | * @package Integracao\ControlPay\Contracts\Venda |
|
11 | */ |
|
12 | class GetByIdResponse |
|
13 | { |
|
14 | /** |
|
15 | * @var \DateTime |
|
16 | */ |
|
17 | private $data; |
|
18 | ||
19 | /** |
|
20 | * @var IntencaoVenda |
|
21 | */ |
|
22 | private $intencaoVenda; |
|
23 | ||
24 | /** |
|
25 | * GetByIdResponse constructor. |
|
26 | */ |
|
27 | public function __construct() |
|
28 | { |
|
29 | } |
|
30 | ||
31 | /** |
|
32 | * @return \DateTime |
|
33 | */ |
|
34 | public function getData() |
|
35 | { |
|
36 | return $this->data; |
|
37 | } |
|
38 | ||
39 | /** |
|
40 | * @param \DateTime $data |
|
41 | * @return GetByIdResponse |
|
42 | */ |
|
43 | public function setData($data) |
|
44 | { |
|
45 | $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data); |
|
46 | return $this; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @return IntencaoVenda |
|
51 | */ |
|
52 | public function getIntencaoVenda() |
|
53 | { |
|
54 | return $this->intencaoVenda; |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * @param IntencaoVenda $intencaoVenda |
|
59 | * @return GetByIdResponse |
|
60 | */ |
|
61 | public function setIntencaoVenda($intencaoVenda) |
|
62 | { |
|
63 | $this->intencaoVenda = $intencaoVenda; |
|
64 | ||
65 | if(is_array($this->intencaoVenda)) |
|
66 | $this->intencaoVenda = SerializerHelper::denormalize($this->intencaoVenda, IntencaoVenda::class); |
|
67 | ||
68 | return $this; |
|
69 | } |
|
70 | ||
71 | } |
@@ 12-71 (lines=60) @@ | ||
9 | * Class VenderResponse |
|
10 | * @package Integracao\ControlPay\Contracts\Venda |
|
11 | */ |
|
12 | class VenderResponse |
|
13 | { |
|
14 | /** |
|
15 | * @var \DateTime |
|
16 | */ |
|
17 | private $data; |
|
18 | ||
19 | /** |
|
20 | * @var IntencaoVenda |
|
21 | */ |
|
22 | private $intencaoVenda; |
|
23 | ||
24 | /** |
|
25 | * VenderResponse constructor. |
|
26 | */ |
|
27 | public function __construct() |
|
28 | { |
|
29 | } |
|
30 | ||
31 | /** |
|
32 | * @return \DateTime |
|
33 | */ |
|
34 | public function getData() |
|
35 | { |
|
36 | return $this->data; |
|
37 | } |
|
38 | ||
39 | /** |
|
40 | * @param \DateTime $data |
|
41 | * @return VenderResponse |
|
42 | */ |
|
43 | public function setData($data) |
|
44 | { |
|
45 | $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data); |
|
46 | return $this; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @return IntencaoVenda |
|
51 | */ |
|
52 | public function getIntencaoVenda() |
|
53 | { |
|
54 | return $this->intencaoVenda; |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * @param IntencaoVenda $intencaoVenda |
|
59 | * @return VenderResponse |
|
60 | */ |
|
61 | public function setIntencaoVenda($intencaoVenda) |
|
62 | { |
|
63 | $this->intencaoVenda = $intencaoVenda; |
|
64 | ||
65 | if(is_array($this->intencaoVenda)) |
|
66 | $this->intencaoVenda = SerializerHelper::denormalize($this->intencaoVenda, IntencaoVenda::class); |
|
67 | ||
68 | return $this; |
|
69 | } |
|
70 | ||
71 | } |