ClubApi::byId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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