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.
Completed
Push — master ( 6c5ffd...9c9abb )
by Alexander
02:23
created

Notification::getPayload()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * (c) Alexander Zhukov <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Zbox\UnifiedPush\Notification;
11
12
/**
13
 * Class Notification
14
 * @package Zbox\UnifiedPush\Notification
15
 */
16
class Notification
17
{
18
    /**
19
     * @var string
20
     */
21
    protected $payload;
22
23
    /**
24
     * @var \ArrayIterator
25
     */
26
    protected $recipients;
27
28
    /**
29
     * Custom properties
30
     *
31
     * @var array
32
     */
33
    private $customNotificationData = array();
34
35
    /**
36
     * @return string
37
     */
38
    public function getPayload()
39
    {
40
        return $this->payload;
41
    }
42
43
    /**
44
     * @param string $payload
45
     * @return $this
46
     */
47
    public function setPayload($payload)
48
    {
49
        $this->payload = $payload;
50
        return $this;
51
    }
52
53
    /**
54
     * @return \ArrayIterator
55
     */
56
    public function getRecipients()
57
    {
58
        return $this->recipients;
59
    }
60
61
    /**
62
     * @param \ArrayIterator $recipients
63
     * @return $this
64
     */
65
    public function setRecipients(\ArrayIterator $recipients)
66
    {
67
        $this->recipients = $recipients;
68
        return $this;
69
    }
70
71
    /**
72
     * @return array
73
     */
74
    public function getCustomNotificationData()
75
    {
76
        return $this->customNotificationData;
77
    }
78
79
    /**
80
     * @param array $customNotificationData
81
     * @return $this
82
     */
83
    public function setCustomNotificationData($customNotificationData)
0 ignored issues
show
Comprehensibility Naming introduced by
The variable name $customNotificationData exceeds the maximum configured length of 20.

Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.

Loading history...
84
    {
85
        $this->customNotificationData = $customNotificationData;
86
        return $this;
87
    }
88
}
89