Guild   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 6
lcom 1
cbo 0
dl 0
loc 38
ccs 0
cts 30
cp 0
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
getEntityInformations() 0 1 ?
retreiveField() 0 1 ?
A guildName() 0 5 1
A guildRealm() 0 5 1
A guildBattlegroup() 0 5 1
A guildMembers() 0 5 1
A guildAchievementPoints() 0 5 1
A guildEmblem() 0 5 1
1
<?php namespace GameScan\WoW\Entity\Player;
2
3
trait Guild
4
{
5
6
    abstract public function getEntityInformations();
7
    abstract public function retreiveField($fielName);
8
9
    public function guildName()
10
    {
11
        $this->retreiveField("guild");
12
        return $this->getEntityInformations()->guild->name;
13
    }
14
15
    public function guildRealm()
16
    {
17
        $this->retreiveField("guild");
18
        return $this->getEntityInformations()->guild->realm;
19
    }
20
    public function guildBattlegroup()
21
    {
22
        $this->retreiveField("guild");
23
        return $this->getEntityInformations()->guild->battlegroup;
24
    }
25
    public function guildMembers()
26
    {
27
        $this->retreiveField("guild");
28
        return $this->getEntityInformations()->guild->members;
29
    }
30
    public function guildAchievementPoints()
31
    {
32
        $this->retreiveField("guild");
33
        return $this->getEntityInformations()->guild->achievementPoints;
34
    }
35
    public function guildEmblem()
36
    {
37
        $this->retreiveField("guild");
38
        return $this->getEntityInformations()->guild->emblem;
39
    }
40
}
41