ClubApi   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A byId() 0 7 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Eekes\VblApi\Api;
5
6
use Eekes\VblApi\Entity\Club as ClubEntity;
7
8
class ClubApi extends AbstractApi
9
{
10
    public static function byId(string $id): ClubEntity
11
    {
12
        $api = new self();
13
14
        $response = $api->call("OrgDetailByGuid?issguid=" .  $id);
15
16
        return ClubEntity::createFromResponse($response[0]);
17
    }
18
}
19
20
21