1 | <?php |
||
23 | class Client { |
||
24 | /** |
||
25 | * Config. |
||
26 | * |
||
27 | * @var Config |
||
28 | */ |
||
29 | private $config; |
||
30 | |||
31 | /** |
||
32 | * Constructs and initializes an Payvision client object. |
||
33 | * |
||
34 | * @param Config $config Payvision config. |
||
35 | */ |
||
36 | 7 | public function __construct( Config $config ) { |
|
39 | |||
40 | /** |
||
41 | * Send request with the specified action and parameters |
||
42 | * |
||
43 | * @param string $method Payvision API method. |
||
44 | * @param string $path Path. |
||
45 | * @param object|string[]|string|false $request Request object. |
||
46 | * @return object |
||
47 | * @throws \Exception Throws exception when error occurs. |
||
48 | */ |
||
49 | 4 | public function send_request( $method, $path, $request = null ) { |
|
84 | } |
||
85 |