GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( dec958...1175d2 )
by Jacky
32s
created

Player::setFactionPoints()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Player
5
 *
6
 * @author Gil Clavien
7
 * @copyright Expansion - le jeu
8
 *
9
 * @package Zeus
10
 * @update 20.05.13
11
 */
12
13
namespace Asylamba\Modules\Zeus\Model;
14
15
class Player {
16
	public $id = 0;
17
	public $bind = 0;
18
	public $rColor = 0;
19
	public $rGodfather = NULL;
20
	public $name = '';
21
	public $sex = 0;
22
	public $description = '';
23
	public $avatar = '';
24
	public $status = 1;
25
	public $credit = 0;
26
	public $uPlayer = '';
27
	public $experience = 0;
28
	public $factionPoint = 0;
29
	public $level = 0;
30
	public $victory = 0;
31
	public $defeat = 0;
32
	public $stepTutorial = 1;
33
	public $stepDone = FALSE;
34
	public $iUniversity = 5000;
35
	public $partNaturalSciences = 25;
36
	public $partLifeSciences = 25;
37
	public $partSocialPoliticalSciences = 25;
38
	public $partInformaticEngineering = 25;
39
	public $dInscription = '';
40
	public $dLastConnection = '';
41
	public $dLastActivity = '';
42
	public $premium = 0; 	# 0 = publicité, 1 = pas de publicité
43
	public $statement = 0;
44
45
	public $synchronized = FALSE;
46
47
	const ACTIVE = 1;
48
    const INACTIVE =  2;
49
    const HOLIDAY = 3;
50
    const BANNED = 4;
51
    const DELETED = 5;
52
    const DEAD = 6;
53
54
	const STANDARD = 1;
55
    const PARLIAMENT = 2;
56
    const TREASURER = 3;
57
    const WARLORD = 4;
58
    const MINISTER = 5;
59
    const CHIEF = 6;
60
61
	public function getId()					{ return $this->id; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
62
	public function getBind()				{ return $this->bind; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
63
	public function getRColor()				{ return $this->rColor; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
64
	public function getName()				{ return $this->name; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
65
	public function getAvatar()				{ return $this->avatar; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
66
	public function getStatus()				{ return $this->status; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
67
	public function getCredit()				{ return $this->credit; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
68
	public function getExperience()			{ return $this->experience; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
69
	public function getLevel()				{ return $this->level; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
70
	public function getVictory()			{ return $this->victory; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
71
	public function getDefeat()				{ return $this->defeat; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
72
	public function getStepTutorial()		{ return $this->stepTutorial; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
73
	public function getDInscription()		{ return $this->dInscription; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
74
	public function getDLastConnection()	{ return $this->dLastConnection; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
75
	public function getDLastActivity()		{ return $this->dLastActivity; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
76
	public function getPremium()			{ return $this->premium; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
77
	public function getStatement()			{ return $this->statement; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
78
79
	/**
80
	 * @return boolean
81
	 */
82
	public function isSynchronized()
83
	{
84
		return $this->synchronized;
85
	}
86
87
	public function setId($v) {
88
		$this->id = $v;
89
		return $this;
90
	}
91
	public function setBind($v) {
92
		$this->bind = $v;
93
		return $this;
94
	}
95
	public function setRColor($v) {
96
		$this->rColor = $v;
97
		return $this;
98
	}
99
	public function setName($v) {
100
		$this->name = $v;
101
		return $this;
102
	}
103
	public function setAvatar($v) {
104
		$this->avatar = $v;
105
		return $this;
106
	}
107
	public function setStatus($v)
108
	{
109
		$this->status = $v;
110
		return $this;
111
	}
112
113
	public function setCredit($v) {
114
		$this->credit = $v;
115
		return $this;
116
	}
117
	public function setExperience($v) {
118
		$this->experience = $v;
119
		return $this;
120
	}
121
	public function setLevel($v) {
122
		$this->level = $v;
123
		return $this;
124
	}
125
	public function setVictory($v) {
126
		 $this->victory = $v;
127
		 return $this;
128
	  }
0 ignored issues
show
Coding Style introduced by
Closing brace indented incorrectly; expected 4 spaces, found 6
Loading history...
129
	public function setDefeat($v) {
130
		$this->defeat = $v;
131
		return $this;
132
 	}
133
	public function setStepTutorial($v) {
134
		$this->stepTutorial = $v;
135
		return $this;
136
	 }
0 ignored issues
show
Coding Style introduced by
Closing brace indented incorrectly; expected 4 spaces, found 5
Loading history...
137
	public function setDInscription($v) {
138
		$this->dInscription = $v;
139
		return $this;
140
	 }
0 ignored issues
show
Coding Style introduced by
Closing brace indented incorrectly; expected 4 spaces, found 5
Loading history...
141
	public function setDLastConnection($v) {
142
		$this->dLastConnection = $v;
143
		return $this;
144
	 }
0 ignored issues
show
Coding Style introduced by
Closing brace indented incorrectly; expected 4 spaces, found 5
Loading history...
145
	public function setDLastActivity($v) {
146
		$this->dLastActivity = $v;
147
		return $this;
148
	 }
0 ignored issues
show
Coding Style introduced by
Closing brace indented incorrectly; expected 4 spaces, found 5
Loading history...
149
	public function setPremium($v) {
150
		$this->premium = $v;
151
		return $this;
152
	 }
0 ignored issues
show
Coding Style introduced by
Closing brace indented incorrectly; expected 4 spaces, found 5
Loading history...
153
	public function setStatement($v) {
154
		$this->statement = $v;
155
		return $this;
156
	 }
0 ignored issues
show
Coding Style introduced by
Closing brace indented incorrectly; expected 4 spaces, found 5
Loading history...
157
	 
158
	public function setFactionPoints($factionPoints)
159
	{
160
		$this->factionPoints = $factionPoints;
0 ignored issues
show
Bug introduced by
The property factionPoints does not seem to exist. Did you mean factionPoint?

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
161
		
162
		return $this;
163
	}
164
165
	public function increaseVictory($i) {
166
		$this->victory += $i;
167
		return $this;
168
	 }
0 ignored issues
show
Coding Style introduced by
Closing brace indented incorrectly; expected 4 spaces, found 5
Loading history...
169
	public function increaseDefeat($i) {
170
		$this->defeat += $i;
171
		return $this;
172
	 }
0 ignored issues
show
Coding Style introduced by
Closing brace indented incorrectly; expected 4 spaces, found 5
Loading history...
173
174
}
175