ConversationsListPayloadResponse::getNextCursor()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 2
nc 2
nop 0
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
}