RtmConnectPayloadResponse   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
eloc 6
c 2
b 0
f 0
dl 0
loc 28
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getUrl() 0 3 1
A getUserId() 0 3 1
A getUserName() 0 3 1
1
<?php
2
3
namespace PortlandLabs\Slackbot\Slack\Api\Payload;
4
5
use CL\Slack\Payload\AbstractPayloadResponse;
6
use JMS\Serializer\Annotation\Type;
7
8
class RtmConnectPayloadResponse extends AbstractPayloadResponse
9
{
10
    /**
11
     * @var string
12
     */
13
    private $url;
14
15
    /**
16
     * @var string[]
17
     */
18
    private $self;
19
20
    /**
21
     * @return string
22
     */
23
    public function getUrl()
24
    {
25
        return $this->url;
26
    }
27
28
    public function getUserId()
29
    {
30
        return $this->self[0];
31
    }
32
33
    public function getUserName()
34
    {
35
        return $this->self[1];
36
    }
37
38
}
39