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

V2Location   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 44
ccs 0
cts 23
cp 0
rs 10
wmc 7
lcom 0
cbo 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getLocationType() 0 3 1
A getLocationId() 0 3 1
A getLocationPlayerId() 0 3 1
A setLocationType() 0 3 1
A setLocationId() 0 3 1
A setLocationPlayerId() 0 3 1
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