Issues (1)

examples/example.php (1 issue)

1
<?php
2
3
use vxm\examples\gatewayclients\Gateway;
4
5
$responseData = (new Gateway([
6
    'client' => [
7
        'username' => 'vxm'
8
    ]
9
]))->request('refund', ['amount' => 1000]);
10
11
if ($responseData->isOk) {
0 ignored issues
show
Accessing isOk on the interface GatewayClients\DataInterface suggest that you code against a concrete implementation. How about adding an instanceof check?
Loading history...
12
    print_r($responseData->get());
13
}