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 ( 11c0a1...856a6b )
by Jacky
34s
created

RecyclingMission::setCycleTime()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
rs 9.4285
c 1
b 0
f 1
1
<?php
2
3
/**
4
 * RecyclingMission
5
 *
6
 * @author Jacky Casas
7
 * @copyright Asylamba
8
 *
9
 * @package Zeus
10
 * @update 09.02.15
11
 */
12
namespace Asylamba\Modules\Athena\Model;
13
14
class RecyclingMission {
15
16
	const ST_DELETED = 0;
17
	const ST_ACTIVE = 1;
18
	const ST_BEING_DELETED = 2;
19
20
	const RECYCLER_CAPACTIY = 400;
21
	const RECYCLING_TIME = 28800; # 8 hours, in seconds
22
	const COEF_SHIP = 1.6; # to convert points to resource for ships
23
		# coef_ship a été calculé par un ingénieur. Si on change la capacité, il faut rechanger coef_ship
24
25
	public $id = 0;
26
	public $rBase = 0;
27
	public $rTarget = 0;
28
	public $cycleTime = 0;
29
	public $recyclerQuantity = 0;
30
	public $addToNextMission = 0;
31
	public $uRecycling = '';
32
	public $statement = 1;
33
34
	public $typeOfPlace;
35
	public $position;
36
	public $population;
37
	public $coefResources;
38
	public $coefHistory;
39
	public $resources;
40
	public $systemId;
41
	public $xSystem;
42
	public $ySystem;
43
	public $typeOfSystem;
44
	public $sectorId;
45
46
	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...
47
	public function getRBase() { return $this->rBase; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
48
	public function getRTarget() { return $this->rTarget; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
49
	public function getCycleTime() { return $this->cycleTime; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
50
	public function getRecyclerQuantity() { return $this->recyclerQuantity; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
51
	public function getAddToNextMission() { return $this->addToNextMission; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
52
	public function getURecycling() { return $this->uRecycling; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
53
	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...
54
55
	public function getTypeOfPlace() { return $this->typeOfPlace; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
56
	public function getPosition() { return $this->position; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
57
	public function getPopulation() { return $this->population; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
58
	public function getCoefResources() { return $this->coefResources; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
59
	public function getCoefHistory() { return $this->coefHistory; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
60
	public function getResources() { return $this->resources; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
61
	public function getSystemId() { return $this->systemId; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
62
	public function getXSystem() { return $this->xSystem; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
63
	public function getYSystem() { return $this->ySystem; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
64
	public function getTypeOfSystem() { return $this->typeOfSystem; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
65
	public function getSectorId() { return $this->sectorId; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
66
67
	public function setId($id)
68
	{
69
		$this->id = $id;
70
		return $this;
71
	}
72
	public function setRBase($rBase)
73
	{
74
		$this->rBase = $rBase;
75
		return $this;
76
	}
77
	public function setCycleTime($cycleTime)
78
	{
79
		$this->cycleTime = $cycleTime;
80
		return $this;
81
	}
82
	public function setRecyclerQuantity($recyclerQuantity)
83
	{
84
		$this->recyclerQuantity = $recyclerQuantity;
85
		return $this;
86
	}
87
	public function setAddToNextMission($addToNextMission)
88
	{
89
		$this->addToNextMission = $addToNextMission;
90
		return $this;
91
	}
92
	public function setURecycling($uRecycling)
93
	{
94
		$this->uRecycling = $uRecycling;
95
		return $this;
96
	}
97
	public function setStatement($statement)
98
	{
99
		$this->$statement = $statement;
100
		return $this;
101
	}
102
103
	public function setTypeOfPplace($typeOfPlace)
104
	{
105
		$this->typeOfPlace = $typeOfPlace;
106
		return $this;
107
	}
108
	public function setPosition($position)
109
	{
110
		$this->position = $position;
111
		return $this;
112
	}
113
	public function setPopulation($population)
114
	{
115
		$this->population = $population;
116
		return $this;
117
	}
118
	public function setCoefResources($coefResources)
119
	{
120
		$this->coefResources = $coefResources;
121
		return $this;
122
	}
123
	public function setCoefHistory($coefHistory)
124
	{
125
		$this->coefHistory = $coefHistory;
126
		return $this;
127
	}
128
	public function setResources($resources)
129
	{
130
		$this->resources = $resources;
131
		return $this;
132
	}
133
	public function setSystemId($systemId)
134
	{
135
		$this->systemId = $systemId;
136
		return $this;
137
	}
138
	public function setXSystem($xSystem)
139
	{
140
		$this->xSystem = $xSystem;
141
		return $this;
142
	}
143
	public function setYSystem($ySystem)
144
	{
145
		$this->ySystem = $ySystem;
146
		return $this;
147
	}
148
	public function setTypeOfSystem($typeOfSystem)
149
	{
150
		$this->typeOfSystem = $typeOfSystem;
151
		return $this;
152
	}
153
	public function setSectorId($sectorId)
154
	{
155
		$this->sectorId = $sectorId;
156
		return $this;
157
	}
158
}
159