Issues (51)

example/01_serverTimeRequest.php (2 issues)

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("Your-API-Key", "Your-API-Sign");
12
13
    $serverTimeResponse = $api->getServerTime();
14
15
    echo "UnixTime: " . $serverTimeResponse->getUnixTime() . "\n";
0 ignored issues
show
The method getUnixTime() 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...Time\ServerTimeResponse. ( Ignorable by Annotation )

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

15
    echo "UnixTime: " . $serverTimeResponse->/** @scrutinizer ignore-call */ getUnixTime() . "\n";
Loading history...
16
    echo "rfc1123: " . $serverTimeResponse->getRfc1123();
0 ignored issues
show
The method getRfc1123() 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...Time\ServerTimeResponse. ( Ignorable by Annotation )

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

16
    echo "rfc1123: " . $serverTimeResponse->/** @scrutinizer ignore-call */ getRfc1123();
Loading history...
17
} catch (Exception $e) {
18
    echo $e->getMessage();
19
}
20