StatusApi::getShards()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 1
cts 1
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace LoLApi\Api;
4
5
use LoLApi\Result\ApiResult;
6
7
/**
8
 * Class StatusApi
9
 *
10
 * @package LoLApi\Api
11
 * @see     https://developer.riotgames.com/api-methods/
12
 */
13
class StatusApi extends BaseApi
14
{
15
    const API_URL_SHARDS = '/lol/status/v3/shard-data';
16
17
    /**
18
     * Requests to this API are not counted against the application Rate Limits.
19
     *
20
     * @return ApiResult
21 1
     */
22
    public function getShards()
23 1
    {
24
        return $this->callApiUrl(self::API_URL_SHARDS, []);
25
    }
26
}
27