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 ( dec958...1175d2 )
by Jacky
32s
created

Client::getSession()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Asylamba\Classes\Daemon;
4
5
class Client
6
{
7
    /** @var string **/
8
    protected $id;
9
	/** @var \DateTime **/
10
	protected $lastConnectedAt;
11
    /** @var boolean **/
12
    protected $isFirstConnection;
13
	/** @var int **/
14
	protected $playerId;
15
    
16
    /**
17
     * @param int $id
18
     * @return $this
19
     */
20
    public function setId($id)
21
    {
22
        $this->id = $id;
0 ignored issues
show
Documentation Bug introduced by
The property $id was declared of type string, but $id is of type integer. Maybe add a type cast?

This check looks for assignments to scalar types that may be of the wrong type.

To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.

$answer = 42;

$correct = false;

$correct = (bool) $answer;
Loading history...
23
        
24
        return $this;
25
    }
26
    
27
    /**
28
     * @return int
29
     */
30
    public function getId()
31
    {
32
        return $this->id;
33
    }
34
	
35
	/**
36
	 * @param \DateTime $lastConnectedAt
37
	 * @return \Asylamba\Classes\Daemon\Client
38
	 */
39
	public function setLastConnectedAt(\DateTime $lastConnectedAt)
40
	{
41
		$this->lastConnectedAt = $lastConnectedAt;
42
		
43
		return $this;
44
	}
45
46
	/**
47
	 * @return \DateTime
48
	 */
49
	public function getLastConnectedAt()
50
	{
51
		return $this->lastConnectedAt;
52
	}
53
	
54
    /**
55
     * @param boolean $isFirstConnection
56
     * @return $this
57
     */
58
    public function setIsFirstConnection($isFirstConnection)
59
    {
60
        $this->isFirstConnection = $isFirstConnection;
61
        
62
        return $this;
63
    }
64
    
65
    /**
66
     * @return boolean
67
     */
68
    public function getIsFirstConnection()
69
    {
70
        return $this->isFirstConnection;
71
    }
72
	
73
	/**
74
	 * @param int $playerId
75
	 * @return Client
76
	 */
77
	public function setPlayerId($playerId)
78
	{
79
		$this->playerId = $playerId;
80
		
81
		return $this;
82
	}
83
	
84
	/**
85
	 * @return int
86
	 */
87
	public function getPlayerId()
88
	{
89
		return $this->playerId;
90
	}
91
}