Completed
Push — master ( b1d0ff...f51f35 )
by Toni
04:43
created

League   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A icon() 0 4 1
1
<?php
2
3
4
namespace ClashOfClans\Api\League;
5
6
7
use ClashOfClans\Api\AbstractResource;
8
9
/**
10
 * @method int id()
11
 * @method string name()
12
 */
13
class League extends AbstractResource
14
{
15
    protected $casts = [
16
        'iconUrls' => Icon::class
17
    ];
18
19
    /**
20
     * @return Icon
21
     */
22
    public function icon()
23
    {
24
        return $this->get('iconUrls');
25
    }
26
}
27