Team::getScore()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace Wonnova\SDK\Model;
3
4
use JMS\Serializer\Annotation as JMS;
5
6
/**
7
 * Class Team
8
 * @author Wonnova
9
 * @link http://www.wonnova.com
10
 */
11
class Team extends AbstractModel
12
{
13
    /**
14
     * @var string
15
     * @JMS\Type("string")
16
     */
17
    private $teamName;
18
    /**
19
     * @var string
20
     * @JMS\Type("string")
21
     */
22
    private $avatar;
23
    /**
24
     * @var string
25
     * @JMS\Type("string")
26
     */
27
    private $description;
28
    /**
29
     * @var int
30
     * @JMS\Type("integer")
31
     */
32
    private $score;
33
    /**
34
     * @var boolean
35
     * @JMS\Type("boolean")
36
     */
37
    private $itsMe;
38
    /**
39
     * @var int
40
     * @JMS\Type("integer")
41
     */
42
    private $position;
43
44
    /**
45
     * @return string
46
     */
47 2
    public function getTeamName()
48
    {
49 2
        return $this->teamName;
50
    }
51
52
    /**
53
     * @param string $teamName
54
     * @return $this
55
     */
56 1
    public function setTeamName($teamName)
57
    {
58 1
        $this->teamName = $teamName;
59 1
        return $this;
60
    }
61
62
    /**
63
     * @return string
64
     */
65 2
    public function getAvatar()
66
    {
67 2
        return $this->avatar;
68
    }
69
70
    /**
71
     * @param string $avatar
72
     * @return $this
73
     */
74 1
    public function setAvatar($avatar)
75
    {
76 1
        $this->avatar = $avatar;
77 1
        return $this;
78
    }
79
80
    /**
81
     * @return string
82
     */
83 2
    public function getDescription()
84
    {
85 2
        return $this->description;
86
    }
87
88
    /**
89
     * @param string $description
90
     * @return $this
91
     */
92 1
    public function setDescription($description)
93
    {
94 1
        $this->description = $description;
95 1
        return $this;
96
    }
97
98
    /**
99
     * @return int
100
     */
101 2
    public function getScore()
102
    {
103 2
        return $this->score;
104
    }
105
106
    /**
107
     * @param int $score
108
     * @return $this
109
     */
110 1
    public function setScore($score)
111
    {
112 1
        $this->score = $score;
113 1
        return $this;
114
    }
115
116
    /**
117
     * @return boolean
118
     */
119 1
    public function getItsMe()
120
    {
121 1
        return $this->itsMe;
122
    }
123
124
    /**
125
     * @param boolean $itsMe
126
     * @return $this
127
     */
128 1
    public function setItsMe($itsMe)
129
    {
130 1
        $this->itsMe = $itsMe;
131 1
        return $this;
132
    }
133
134
    /**
135
     * @return int
136
     */
137 2
    public function getPosition()
138
    {
139 2
        return $this->position;
140
    }
141
142
    /**
143
     * @param int $position
144
     * @return $this
145
     */
146 1
    public function setPosition($position)
147
    {
148 1
        $this->position = $position;
149 1
        return $this;
150
    }
151
}
152