Completed
Push — master ( 4671d6...c5be3c )
by Andrey
03:04
created

TestNotification   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 23
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace FtwSoft\NotificationChannels\Intercom\Tests\Mocks;
4
5
use FtwSoft\NotificationChannels\Intercom\Contracts\IntercomNotification;
6
use FtwSoft\NotificationChannels\Intercom\IntercomMessage;
7
use Illuminate\Notifications\Notification;
8
9
class TestNotification extends Notification implements IntercomNotification
10
{
11
    /**
12
     * @var IntercomMessage
13
     */
14
    private $intercomMessage;
15
16
    /**
17
     * TestNotification constructor.
18
     *
19
     * @param \FtwSoft\NotificationChannels\Intercom\IntercomMessage $intercomMessage
20
     */
21
    public function __construct(IntercomMessage $intercomMessage)
22
    {
23
        $this->intercomMessage = $intercomMessage;
24
    }
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function toIntercom($notifiable): IntercomMessage
30
    {
31
        return $this->intercomMessage;
32
    }
33
}
34