Completed
Pull Request — master (#11)
by Tristan
13:33 queued 11:30
created

StatusApi::getShardsByRegion()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
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