GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Issues (14)

src/Dybaseapi/MNS/Requests/BatchReceiveMessage.php (1 issue)

1
<?php
2
3
namespace AlibabaCloud\Dybaseapi\MNS\Requests;
4
5
/**
6
 * Class BatchReceiveMessage
7
 *
8
 * @package AlibabaCloud\Dybaseapi\MNS\Requests
9
 */
10
class BatchReceiveMessage extends BaseRequest
11
{
12
    /**
13
     * @var null
14
     */
15
    private $queueName;
16
17
    /**
18
     * @var mixed
19
     */
20
    private $numOfMessages;
21
22
    /**
23
     * @var null
24
     */
25
    private $waitSeconds;
26
27
    /**
28
     * BatchReceiveMessageRequest constructor.
29
     *
30
     * @param      $numOfMessages
31
     * @param null $waitSeconds
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $waitSeconds is correct as it would always require null to be passed?
Loading history...
32
     */
33 1
    public function __construct($numOfMessages, $waitSeconds = null)
34
    {
35 1
        parent::__construct('get', null);
36 1
        $this->numOfMessages = $numOfMessages;
37 1
        $this->waitSeconds   = $waitSeconds;
38 1
    }
39
40
    /**
41
     * @param $queueName
42
     */
43 1
    public function setQueueName($queueName)
44
    {
45 1
        $this->queueName    = $queueName;
46 1
        $this->resourcePath = 'queues/' . $queueName . '/messages';
47 1
    }
48
49
    /**
50
     * @return null|string
51
     */
52
    public function getQueueName()
53
    {
54
        return $this->queueName;
55
    }
56
57
    /**
58
     * @return null|string
59
     */
60
    public function getWaitSeconds()
61
    {
62
        return $this->waitSeconds;
63
    }
64
65
    /**
66
     * @return mixed
67
     */
68
    public function getNumOfMessages()
69
    {
70
        return $this->numOfMessages;
71
    }
72
73
    /**
74
     * @return null
75
     */
76 1
    public function generateBody()
77
    {
78 1
        return null;
79
    }
80
81
    /**
82
     * @return string
83
     */
84 1
    public function generateQueryString()
85
    {
86 1
        $params = ['numOfMessages' => $this->numOfMessages];
87 1
        if ($this->waitSeconds !== null) {
88 1
            $params['waitseconds'] = $this->waitSeconds;
89 1
        }
90
91 1
        return http_build_query($params);
92
    }
93
}
94