1 | <?php |
||
17 | class Payment extends AggregateResource |
||
18 | { |
||
19 | /** |
||
20 | * @var integer |
||
21 | * @ORM\Column(type="integer") |
||
22 | * @ORM\Id |
||
23 | * @ORM\GeneratedValue(strategy="AUTO") |
||
24 | */ |
||
25 | protected $id; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | * @ORM\Column(type="string", nullable=false) |
||
30 | */ |
||
31 | protected $txId; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | * @ORM\Column(type="string", nullable=false) |
||
36 | */ |
||
37 | protected $method; |
||
38 | |||
39 | /** |
||
40 | * Transaction payload |
||
41 | * |
||
42 | * @var array |
||
43 | * @ORM\Column(type="json_array", nullable=false) |
||
44 | * @Assert\Type("array") |
||
45 | * @Assert\NotNull() |
||
46 | */ |
||
47 | protected $payload; |
||
48 | |||
49 | /** |
||
50 | * @var \DateTime |
||
51 | * @ORM\Column(type="datetime", nullable=true) |
||
52 | * @Assert\Type(type="\DateTime") |
||
53 | */ |
||
54 | protected $checked; |
||
55 | |||
56 | /** |
||
57 | * @var boolean |
||
58 | * @Assert\Type(type="boolean") |
||
59 | * @ORM\Column(type="boolean") |
||
60 | */ |
||
61 | protected $verified = false; |
||
62 | |||
63 | public function __construct() |
||
67 | |||
68 | /** |
||
69 | * @return int |
||
70 | */ |
||
71 | public function getId() |
||
75 | |||
76 | /** |
||
77 | * @param string $txId |
||
78 | */ |
||
79 | public function setTransactionId($txId) |
||
83 | |||
84 | /** |
||
85 | * @return string |
||
86 | */ |
||
87 | public function getTransactionId() |
||
91 | |||
92 | /** |
||
93 | * @return ArrayCollection |
||
94 | */ |
||
95 | public function getPayload() |
||
99 | |||
100 | /** |
||
101 | * @param ArrayCollection $payload |
||
102 | */ |
||
103 | public function setPayload(ArrayCollection $payload) |
||
107 | |||
108 | /** |
||
109 | * @return void |
||
110 | */ |
||
111 | public function verify() |
||
115 | |||
116 | /** |
||
117 | * @return bool |
||
118 | */ |
||
119 | public function isVerified() |
||
123 | |||
124 | /** |
||
125 | * @return string |
||
126 | */ |
||
127 | public function getMethod() |
||
131 | |||
132 | /** |
||
133 | * @param string $method |
||
134 | */ |
||
135 | public function setMethod($method) |
||
139 | |||
140 | /** |
||
141 | * @return string |
||
142 | */ |
||
143 | public function __toString() |
||
147 | } |
||
148 |