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

WebNotificationPayload   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 25
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\Notification;
14
15
use Fresh\FirebaseCloudMessagingBundle\Message\Part\Payload\WebPayloadInterface;
16
17
/**
18
 * WebNotificationPayload.
19
 *
20
 * @author Artem Henvald <[email protected]>
21
 */
22
class WebNotificationPayload extends AbstractCommonNotificationPayload implements WebPayloadInterface
23
{
24
    private ?string $icon = null;
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 '?', expecting T_FUNCTION or T_CONST
Loading history...
25
26
    /**
27
     * @param string $icon
28
     *
29
     * @return $this
30
     */
31
    public function setIcon(string $icon): self
32
    {
33
        $this->icon = $icon;
34
35
        return $this;
36
    }
37
38
    /**
39
     * @return string|null
40
     */
41
    public function getIcon(): ?string
42
    {
43
        return $this->icon;
44
    }
45
}
46