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 ( 594733...71c569 )
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
use Zbox\UnifiedPush\Message\MessageInterface;
13
14
/**
15
 * Class Notification
16
 * @package Zbox\UnifiedPush\Notification
17
 */
18
class Notification
19
{
20
    /**
21
     * @var string
22
     */
23
    protected $payload;
24
25
    /**
26
     * @var \ArrayIterator
27
     */
28
    protected $recipients;
29
30
    /**
31
     * @var MessageInterface
32
     */
33
    protected $message;
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($recipients)
66
    {
67
        $this->recipients = $recipients;
68
        return $this;
69
    }
70
71
    /**
72
     * @return MessageInterface
73
     */
74
    public function getMessage()
75
    {
76
        return $this->message;
77
    }
78
79
    /**
80
     * @param MessageInterface $message
81
     * @return $this
82
     */
83
    public function setMessage(MessageInterface $message)
84
    {
85
        $this->message = $message;
86
        return $this;
87
    }
88
}
89