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
Pull Request — master (#123)
by
unknown
08:06
created

CommercialShipping::setDArrival()   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
 * CommercialShipping
5
 *
6
 * @author Jacky Casas
7
 * @copyright Expansion - le jeu
8
 *
9
 * @package Athena
10
 * @update 13.11.13
11
 */
12
namespace Asylamba\Modules\Athena\Model;
13
14
use Asylamba\Modules\Hermes\Model\Notification;
15
use Asylamba\Modules\Athena\Resource\ShipResource;
16
use Asylamba\Classes\Library\Format;
17
use Asylamba\Classes\Worker\ASM;
18
use Asylamba\Modules\Ares\Model\Commander;
19
use Asylamba\Modules\Ares\Resource\CommanderResources;
20
use Asylamba\Classes\Worker\CTR;
21
use Asylamba\Classes\Library\Utils;
22
23
class CommercialShipping {
24
	# statement
25
	const ST_WAITING = 0;		# pret au départ, statique
26
	const ST_GOING = 1;			# aller
27
	const ST_MOVING_BACK = 2;	# retour
28
29
	const WEDGE = 1000;	# soute
30
31
	# attributes
32
	public $id = 0;
33
	public $rPlayer = 0;
34
	public $rBase = 0;
35
	public $rBaseDestination = 0;
36
	public $rTransaction = NULL;			# soit l'un
37
	public $resourceTransported = NULL;		# soit l'autre
38
	public $shipQuantity = 0;
39
	public $dDeparture = '';
40
	public $dArrival = '';
41
	public $statement = 0;
42
43
	public $baseRSystem;
44
	public $basePosition;
45
	public $baseXSystem;
46
	public $baseYSystem;
47
48
	public $destinationRSystem;
49
	public $destinationPosition;
50
	public $destinationXSystem;
51
	public $destinationYSystem;
52
53
	public $price;
54
	public $typeOfTransaction;
55
	public $quantity;
56
	public $identifier;
57
	public $commanderAvatar;
58
	public $commanderName;
59
	public $commanderLevel;
60
	public $commanderVictory;
61
	public $commanderExperience;
62
63
	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...
64
	public function getRPlayer() { return $this->rPlayer; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
65
	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...
66
	public function getrBaseDestination() { return $this->rBaseDestination; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
67
	public function getRTransaction() { return $this->rTransaction; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
68
	public function getRessourceTransported() { return $this->resourceTransported; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
69
	public function getShipQuantity() { return $this->shipQuantity; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
70
	public function getDDeparture() { return $this->dDeparture; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
71
	public function getDArrival() { return $this->dArrival; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
72
	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...
73
74
	public function getBaseRStystem() { return $this->baseRSystem; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
75
	public function getBasePosition() { return $this->basePosition; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
76
	public function getBaseXSystem() { return $this->baseXSystem; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
77
	public function getBaseYSystem() { return $this->baseYSystem; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
78
79
	public function getDestinationRSystem() { return $this->destinationRSystem; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
80
	public function getDestinationPosition() { return $this->destinationPosition; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
81
	public function getDestinationXSystem() { return $this->destinationXSystem; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
82
	public function getDestinationYSystem() { return $this->destinationYSystem; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
83
84
	public function getPrice() { return $this->price; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
85
	public function getTypeOfTransaction() { return $this->typeOfTransaction; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
86
	public function getQuantity() { return $this->quantity; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
87
	public function getIdentifier() { return $this->identifier; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
88
	public function getCommanderAvatar() { return $this->commanderAvatar; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
89
	public function getCommanderName() { return $this->commanderName; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
90
	public function getCommanderLevel() { return $this->commanderLevel; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
91
	public function getCommanderVictory() { return $this->commanderVictory; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
92
	public function getCommanderExperience() { return $this->commanderExperience; }
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
93
94
95
	public function setId($id)
96
	{
97
		$this->id=$id;
98
		return $this;
99
	}
100
	public function setRPlpayer($rPlayer)
101
	{
102
		$this->rPlayer=$rPlayer;
103
		return $this;
104
	}
105
	public function setRBase($rBase)
106
	{
107
		$this->rBase=$rBase;
108
		return $this;
109
	}
110
	public function setRBaseDestination($rBaseDestination)
111
	{
112
		$this->rBaseDestination=$rBaseDestination;
113
		return $this;
114
	}
115
	public function setRTransaction($rTransaction)
116
	{
117
		$this->rTransaction=$rTransaction;
118
		return $this;
119
	}
120
	public function setResourceTransported($resourceTransported)
121
	{
122
		$this->resourceTransported=$resourceTransported;
123
		return $this;
124
	}
125
	public function setShipQuantity($setShipQuantity)
126
	{
127
		$this->setShipQuantity=$setShipQuantity;
0 ignored issues
show
Bug introduced by
The property setShipQuantity does not seem to exist. Did you mean shipQuantity?

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...
128
		return $this;
129
	}
130
	public function setDDeparture($dDeparture)
131
	{
132
		$this->dDeparture=$dDeparture;
133
		return $this;
134
	}
135
	public function setDArrival($dArrival)
136
	{
137
		$this->dArrival=$dArrival;
138
		return $this;
139
	}
140
	public function setStatement($statement)
141
	{
142
		$this->statement=$statement;
143
		return $this;
144
	}
145
146
	public function setBaseRSystem($baseRSystem)
147
	{
148
		$this->baseRSystem=$baseRSystem;
149
		return $this;
150
	}
151
	public function setBasePosition($basePosition)
152
	{
153
		$this->basePosition=$basePosition;
154
		return $this;
155
	}
156
	public function setBaseXSystem($baseXSystem)
157
	{
158
		$this->baseXSystem=$baseXSystem;
159
		return $this;
160
	}
161
	public function setBaseYSystem($baseYSystem)
162
	{
163
		$this->baseYSystem=$baseYSystem;
164
		return $this;
165
	}
166
167
	public function setDestinationRSystem($destinationRSystem)
168
	{
169
		$this->destinationRSystem=$destinationRSystem;
170
		return $this;
171
	}
172
	public function setDestinationPosition($destinationPosition)
173
	{
174
		$this->destinationPosition=$destinationPosition;
175
		return $this;
176
	}
177
	public function setDestinationXSystem($destinationXSystem)
178
	{
179
		$this->destinationXSystem=$destinationXSystem;
180
		return $this;
181
	}
182
	public function setDestinationYSystem($destinationYSystem)
183
	{
184
		$this->destinationYSystem=$destinationYSystem;
185
		return $this;
186
	}
187
188
	public function setPrice($price)
189
	{
190
		$this->price=$price;
191
		return $this;
192
	}
193
	public function setTypeOfTransaction($typeOfTransaction)
194
	{
195
		$this->typeOfTransaction=$typeOfTransaction;
196
		return $this;
197
	}
198
	public function setQuantity($quantity)
199
	{
200
		$this->quantity=$quantity;
201
		return $this;
202
	}
203
	public function setIdentifier($identifier)
204
	{
205
		$this->identifier=$identifier;
206
		return $this;
207
	}
208
	public function setCommanderAvatar($commanderAvatar)
209
	{
210
		$this->commanderAvatar=$commanderAvatar;
211
		return $this;
212
	}
213
	public function setCommanderName($commanderName)
214
	{
215
		$this->commanderName=$commanderName;
216
		return $this;
217
	}
218
	public function setCommanderLevel($commanderLevel)
219
	{
220
		$this->commanderLevel=$commanderLevel;
221
		return $this;
222
	}
223
	public function setCommanderVictory($commanderVictory)
224
	{
225
		$this->commanderVictory=$commanderVictory;
226
		return $this;
227
	}
228
	public function setCommanderExperience($commanderExperience)
229
	{
230
		$this->commanderExperience=$commanderExperience;
231
		return $this;
232
	}
233
}
234