ServerServerStatus   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 46
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getId() 0 4 1
A isServerOpen() 0 4 1
A setServerOpen() 0 4 1
A getOnlinePlayers() 0 4 1
A setOnlinePlayers() 0 4 1
1
<?php
2
namespace Tarioch\EveapiFetcherBundle\Entity;
3
4
use Doctrine\ORM\Mapping as ORM;
5
6
/**
7
 * @ORM\Entity
8
 * @ORM\Table(name="serverServerStatus")
9
 */
10
class ServerServerStatus
11
{
12
    /**
13
     * @ORM\Id @ORM\GeneratedValue @ORM\Column(name="ID", type="bigint", options={"unsigned"=true})
14
     */
15
    private $id;
16
17
    /**
18
     * @ORM\Column(name="serverOpen", type="boolean")
19
     */
20
    private $serverOpen;
21
22
    /**
23
     * @ORM\Column(name="onlinePlayers", type="bigint", options={"unsigned"=true})
24
     */
25
    private $onlinePlayers;
26
27
    public function __construct()
28
    {
29
    }
30
31
    public function getId()
32
    {
33
        return $this->id;
34
    }
35
36
    public function isServerOpen()
37
    {
38
        return $this->serverOpen;
39
    }
40
41
    public function setServerOpen($serverOpen)
42
    {
43
        $this->serverOpen = $serverOpen;
44
    }
45
46
    public function getOnlinePlayers()
47
    {
48
        return $this->onlinePlayers;
49
    }
50
51
    public function setOnlinePlayers($onlinePlayers)
52
    {
53
        $this->onlinePlayers = $onlinePlayers;
54
    }
55
}
56