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

AndroidNotificationPayload::getColor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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\AndroidPayloadInterface;
16
17
/**
18
 * AndroidNotificationPayload.
19
 *
20
 * @author Artem Henvald <[email protected]>
21
 */
22
class AndroidNotificationPayload extends AbstractMobileNotificationPayload implements AndroidPayloadInterface
23
{
24
    /** @var string */
25
    private $icon;
26
27
    /** @var string */
28
    private $tag;
29
30
    /** @var string */
31
    private $color;
32
33
    /**
34
     * @param string $icon
35
     *
36
     * @return $this
37
     */
38
    public function setIcon(string $icon): self
39
    {
40
        $this->icon = $icon;
41
42
        return $this;
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getIcon(): string
49
    {
50
        return $this->icon;
51
    }
52
53
    /**
54
     * @param string $tag
55
     *
56
     * @return $this
57
     */
58
    public function setTag(string $tag): self
59
    {
60
        $this->tag = $tag;
61
62
        return $this;
63
    }
64
65
    /**
66
     * @return string
67
     */
68
    public function getTag(): string
69
    {
70
        return $this->tag;
71
    }
72
73
    /**
74
     * @param string $color
75
     *
76
     * @return $this
77
     */
78
    public function setColor(string $color): self
79
    {
80
        $this->color = $color;
81
82
        return $this;
83
    }
84
85
    /**
86
     * @return string
87
     */
88
    public function getColor(): string
89
    {
90
        return $this->color;
91
    }
92
}
93