Completed
Push — work-fleets ( 8d34ed...b1376e )
by SuperNova.WS
06:48
created

V2Location::setLocationId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
1
<?php
2
/**
3
 * Created by Gorlum 21.08.2016 1:12
4
 */
5
6
namespace Common;
7
8
9
class V2Location {
10
  protected $locationType = LOC_NONE;
11
  protected $locationId = 0;
12
  protected $playerId = 0;
13
14
15
  /**
16
   * V2Location constructor.
17
   *
18
   * @param int $locationType
19
   * @param int $locationId
20
   * @param int $playerId
21
   */
22
  public function __construct($locationType = LOC_NONE, $locationId = 0, $playerId = 0) {
23
    $this->setLocationType($locationType);
24
    $this->setLocationId($locationId);
25
    $this->setLocationPlayerId($playerId);
26
  }
27
28
  public function getLocationType() {
29
    return $this->locationType;
30
  }
31
32
  public function getLocationId() {
33
    return $this->locationId;
34
  }
35
36
  public function getLocationPlayerId() {
37
    return $this->playerId;
38
  }
39
40
  public function setLocationType($value) {
41
    $this->locationType = $value;
42
  }
43
44
  public function setLocationId($value) {
45
    $this->locationId = $value;
46
  }
47
48
  public function setLocationPlayerId($value) {
49
    $this->playerId = $value;
50
  }
51
52
}
53