Completed
Push — master ( 611a4d...0d4705 )
by Artem
11:18 queued 04:23
created

CombinedPayload   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 48
rs 10
c 0
b 0
f 0
1
<?php
2
/*
3
 * This file is part of the FirebaseCloudMessagingBundle.
4
 *
5
 * (c) Artem Henvald <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
declare(strict_types=1);
12
13
namespace Fresh\FirebaseCloudMessagingBundle\Message\Part\Payload\Combined;
14
15
use Fresh\FirebaseCloudMessagingBundle\Message\Part\Payload\AndroidPayloadInterface;
16
use Fresh\FirebaseCloudMessagingBundle\Message\Part\Payload\Data\DataPayload;
17
use Fresh\FirebaseCloudMessagingBundle\Message\Part\Payload\IosPayloadInterface;
18
use Fresh\FirebaseCloudMessagingBundle\Message\Part\Payload\Notification\AbstractCommonNotificationPayload;
19
use Fresh\FirebaseCloudMessagingBundle\Message\Part\Payload\WebPayloadInterface;
20
21
/**
22
 * CombinedPayload.
23
 *
24
 * @author Artem Henvald <[email protected]>
25
 */
26
class CombinedPayload implements AndroidPayloadInterface, IosPayloadInterface, WebPayloadInterface
27
{
28
    private DataPayload $dataPayload;
0 ignored issues
show
Bug introduced by
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected T_STRING, expecting T_FUNCTION or T_CONST
Loading history...
29
30
    private AbstractCommonNotificationPayload $notificationPayload;
31
32
    /**
33
     * @param DataPayload $dataPayload
34
     *
35
     * @return $this
36
     */
37
    public function setDataPayload(DataPayload $dataPayload): self
38
    {
39
        $this->dataPayload = $dataPayload;
40
41
        return $this;
42
    }
43
44
    /**
45
     * @return DataPayload
46
     */
47
    public function getDataPayload(): DataPayload
48
    {
49
        return $this->dataPayload;
50
    }
51
52
    /**
53
     * @param AbstractCommonNotificationPayload $notificationPayload
54
     *
55
     * @return $this
56
     */
57
    public function setNotificationPayload(AbstractCommonNotificationPayload $notificationPayload): self
58
    {
59
        $this->notificationPayload = $notificationPayload;
60
61
        return $this;
62
    }
63
64
    /**
65
     * @return AbstractCommonNotificationPayload
66
     */
67
    public function getNotificationPayload(): AbstractCommonNotificationPayload
68
    {
69
        return $this->notificationPayload;
70
    }
71
}
72