StatusApi   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 14
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getShards() 0 4 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