Completed
Push — master ( 72cf95...b4fc03 )
by Artem
08:38
created

WebNotificationPayload::setIcon()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
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
    /** @var string */
25
    private $icon;
26
27
    /**
28
     * @param string $icon
29
     *
30
     * @return $this
31
     */
32
    public function setIcon(string $icon): self
33
    {
34
        $this->icon = $icon;
35
36
        return $this;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getIcon(): string
43
    {
44
        return $this->icon;
45
    }
46
}
47