Completed
Push — master ( cdb73e...fb348d )
by Mathew
02:04
created

WhoAmI   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 47
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A isAuthenticated() 0 4 1
A getClientId() 0 4 1
A getUserId() 0 4 1
1
<?php
2
3
namespace Thepixeldeveloper\Mondo\Response\Ping;
4
5
/**
6
 * Class WhoAmI
7
 *
8
 * @package Thepixeldeveloper\Mondo\Response\Ping
9
 */
10
class WhoAmI
11
{
12
    /**
13
     * Client authenticated?
14
     *
15
     * @var boolean
16
     */
17
    protected $authenticated;
18
19
    /**
20
     * Client id.
21
     *
22
     * @var string
23
     */
24
    protected $clientId;
25
26
    /**
27
     * User id.
28
     *
29
     * @var string
30
     */
31
    protected $userId;
32
33
    /**
34
     * @return boolean
35
     */
36
    public function isAuthenticated()
37
    {
38
        return (bool) $this->authenticated;
39
    }
40
41
    /**
42
     * @return string
43
     */
44
    public function getClientId()
45
    {
46
        return $this->clientId;
47
    }
48
49
    /**
50
     * @return string
51
     */
52
    public function getUserId()
53
    {
54
        return $this->userId;
55
    }
56
}
57