Total Complexity | 11 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Changes | 7 | ||
Bugs | 3 | Features | 0 |
1 | <?php |
||
5 | class WebhookCall |
||
6 | { |
||
7 | public $payload = []; |
||
8 | |||
9 | public function __construct(array $payload) |
||
10 | { |
||
11 | $this->payload = $payload; |
||
12 | } |
||
13 | |||
14 | public function address(): string |
||
15 | { |
||
16 | return $this->payload['address_to']; |
||
17 | } |
||
18 | |||
19 | public function amount() |
||
20 | { |
||
21 | return $this->payload['value']; |
||
22 | } |
||
23 | |||
24 | public function btc() |
||
27 | } |
||
28 | |||
29 | public function coin(): string |
||
32 | } |
||
33 | |||
34 | public function confirmations(): string |
||
35 | { |
||
36 | return $this->payload['confirmations']; |
||
37 | } |
||
38 | |||
39 | public function currency(): string |
||
40 | { |
||
41 | return $this->payload['currency']; |
||
42 | } |
||
43 | |||
44 | public function from(): string |
||
45 | { |
||
46 | return $this->payload['address_from']; |
||
47 | } |
||
48 | |||
49 | public function transaction(): array |
||
52 | } |
||
53 | |||
54 | public function txid(): string |
||
55 | { |
||
56 | return $this->payload['txid']; |
||
57 | } |
||
58 | |||
59 | public function type(): string |
||
62 | } |
||
63 | } |
||
64 |