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 ( 1dc585...abcc73 )
by Alexander
02:30
created

Notification::getCustomNotificationData()   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
use Zbox\UnifiedPush\NotificationService\NotificationServices;
13
14
/**
15
 * Class Notification
16
 * @package Zbox\UnifiedPush\Notification
17
 */
18
class Notification
19
{
20
    /**
21
     * @var string
22
     */
23
    protected $type;
24
25
    /**
26
     * @var string
27
     */
28
    protected $payload;
29
30
    /**
31
     * @var \ArrayIterator
32
     */
33
    protected $recipients;
34
35
    /**
36
     * Custom properties
37
     *
38
     * @var array
39
     */
40
    private $customNotificationData = array();
41
42
    /**
43
     * @return string
44
     */
45
    public function getType()
46
    {
47
        return $this->type;
48
    }
49
50
    /**
51
     * @param string $type
52
     * @return $this
53
     */
54
    public function setType($type)
55
    {
56
        $this->type = NotificationServices::validateServiceName($type);
57
        return $this;
58
    }
59
60
    /**
61
     * @return string
62
     */
63
    public function getPayload()
64
    {
65
        return $this->payload;
66
    }
67
68
    /**
69
     * @param string $payload
70
     * @return $this
71
     */
72
    public function setPayload($payload)
73
    {
74
        $this->payload = $payload;
75
        return $this;
76
    }
77
78
    /**
79
     * @return \ArrayIterator
80
     */
81
    public function getRecipients()
82
    {
83
        return $this->recipients;
84
    }
85
86
    /**
87
     * @param \ArrayIterator $recipients
88
     * @return $this
89
     */
90
    public function setRecipients(\ArrayIterator $recipients)
91
    {
92
        $this->recipients = $recipients;
93
        return $this;
94
    }
95
96
    /**
97
     * @return array
98
     */
99
    public function getCustomNotificationData()
100
    {
101
        return $this->customNotificationData;
102
    }
103
104
    /**
105
     * @param array $customNotificationData
106
     * @return $this
107
     */
108
    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...
109
    {
110
        $this->customNotificationData = $customNotificationData;
111
        return $this;
112
    }
113
}
114