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 ( 019e6b...cdb240 )
by Alexander
02:28
created

Notification   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 71
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 71
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getPayload() 0 4 1
A setPayload() 0 5 1
A getRecipients() 0 4 1
A setRecipients() 0 5 1
A getMessage() 0 4 1
A setMessage() 0 5 1
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\Message;
11
12
/**
13
 * Class Notification
14
 * @package Zbox\UnifiedPush\Message
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
     * @var MessageInterface
30
     */
31
    protected $message;
32
33
    /**
34
     * @return string
35
     */
36
    public function getPayload()
37
    {
38
        return $this->payload;
39
    }
40
41
    /**
42
     * @param string $payload
43
     * @return $this
44
     */
45
    public function setPayload($payload)
46
    {
47
        $this->payload = $payload;
48
        return $this;
49
    }
50
51
    /**
52
     * @return \ArrayIterator
53
     */
54
    public function getRecipients()
55
    {
56
        return $this->recipients;
57
    }
58
59
    /**
60
     * @param \ArrayIterator $recipients
61
     * @return $this
62
     */
63
    public function setRecipients($recipients)
64
    {
65
        $this->recipients = $recipients;
66
        return $this;
67
    }
68
69
    /**
70
     * @return MessageInterface
71
     */
72
    public function getMessage()
73
    {
74
        return $this->message;
75
    }
76
77
    /**
78
     * @param MessageInterface $message
79
     * @return $this
80
     */
81
    public function setMessage(MessageInterface $message)
82
    {
83
        $this->message = $message;
84
        return $this;
85
    }
86
}
87