Issues (51)

example/04_Assets.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * @author  Fabian Hanisch
4
 * @since   16.07.2017 02:55
5
 * @version 1.0
6
 */
7
8
require_once(__DIR__ . '/../vendor/autoload.php');
9
10
try {
11
    $api = new \HanischIt\KrakenApi\KrakenApi(
12
        "Your-API-Key",
13
        "Your-API-Sign"
14
    );
15
16
    $assetsResponse = $api->getAssets();
17
    print_r($assetsResponse->getAssets());
0 ignored issues
show
The method getAssets() does not exist on HanischIt\KrakenApi\Model\ResponseInterface. It seems like you code against a sub-type of HanischIt\KrakenApi\Model\ResponseInterface such as HanischIt\KrakenApi\Call\Assets\AssetsResponse. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

17
    print_r($assetsResponse->/** @scrutinizer ignore-call */ getAssets());
Loading history...
18
} catch (Exception $e) {
19
    echo $e->getMessage();
20
}
21