World::setSlug()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Germania\Worlds;
3
4
class World extends WorldAbstract implements WorldInterface
5
{
6
7
    public function setId( $id )
8
    {
9
        $this->id = $id;
10
        return $this;
11
    }
12
13
14
    public function setName( $name )
15
    {
16
        $this->name = $name;
17
        return $this;
18
    }
19
20
21
    public function setSlug( $slug )
22
    {
23
        $this->slug = $slug;
24
        return $this;
25
    }
26
27
28
    public function setDescription( $description )
29
    {
30
        $this->description = $description;
31
        return $this;
32
    }
33
34
35
    public function setPhoto( $photo )
36
    {
37
        $this->photo = $photo;
38
        return $this;
39
    }
40
41
}
42
43