WhoAmI   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
c 2
b 0
f 0
lcom 1
cbo 0
dl 0
loc 50
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
use JMS\Serializer\Annotation as JMS;
6
7
/**
8
 * Class WhoAmI
9
 *
10
 * @package Thepixeldeveloper\Mondo\Response\Ping
11
 */
12
class WhoAmI
13
{
14
    /**
15
     * Client authenticated?
16
     *
17
     * @var boolean
18
     * @JMS\Type("boolean")
19
     */
20
    protected $authenticated;
21
22
    /**
23
     * Client id.
24
     *
25
     * @var string
26
     * @JMS\Type("string")
27
     */
28
    protected $clientId;
29
30
    /**
31
     * User id.
32
     *
33
     * @var string
34
     * @JMS\Type("string")
35
     */
36
    protected $userId;
37
38
    /**
39
     * @return boolean
40
     */
41
    public function isAuthenticated()
42
    {
43
        return (bool) $this->authenticated;
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function getClientId()
50
    {
51
        return $this->clientId;
52
    }
53
54
    /**
55
     * @return string
56
     */
57
    public function getUserId()
58
    {
59
        return $this->userId;
60
    }
61
}
62