ConversationsListPayloadResponse   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getNextCursor() 0 3 2
1
<?php
2
namespace PortlandLabs\Slackbot\Slack\Api\Payload;
3
4
use CL\Slack\Payload\ChannelsListPayloadResponse;
5
use PortlandLabs\Slackbot\Slack\Api\Payload\Model\ResponseMetadata;
6
7
class ConversationsListPayloadResponse extends ChannelsListPayloadResponse
8
{
9
10
    /** @var ResponseMetadata */
11
    private $responseMetadata;
12
13
    /**
14
     * Get the next cursor if one is set
15
     *
16
     * @return string|null
17
     */
18
    public function getNextCursor(): ?string
19
    {
20
        return $this->responseMetadata ? $this->responseMetadata->getNextCursor() : null;
21
    }
22
23
}