1 | <?php |
||
12 | class BillogramCallback implements CreatableFromArray |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $url; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $custom; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $signKey; |
||
28 | |||
29 | /** |
||
30 | * @return string |
||
31 | */ |
||
32 | public function getUrl(): string |
||
36 | |||
37 | /** |
||
38 | * @param string $url |
||
39 | * |
||
40 | * @return BillogramCallback |
||
41 | */ |
||
42 | public function withUrl(string $url) |
||
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getCustom(): string |
||
57 | |||
58 | /** |
||
59 | * @param string $custom |
||
60 | * |
||
61 | * @return BillogramCallback |
||
62 | */ |
||
63 | public function withCustom(string $custom) |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getSignKey(): string |
||
78 | |||
79 | /** |
||
80 | * @param string $signKey |
||
81 | * |
||
82 | * @return BillogramCallback |
||
83 | */ |
||
84 | public function withSignKey(string $signKey) |
||
91 | |||
92 | public function toArray() |
||
105 | |||
106 | /** |
||
107 | * Create an API response object from the HTTP response from the API server. |
||
108 | * |
||
109 | * @param array $data |
||
110 | * |
||
111 | * @return self |
||
112 | */ |
||
113 | 3 | public static function createFromArray(array $data) |
|
122 | } |
||
123 |