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

League::icon()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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