Passed
Push — master ( 7c85b2...443a3c )
by Andrey
03:17
created

TestNotification::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
/**
3
 * @link      http://horoshop.ua
4
 * @copyright Copyright (c) 2015-2018 Horoshop TM
5
 * @author    Andrey Telesh <[email protected]>
6
 */
7
8
namespace FtwSoft\NotificationChannels\Intercom\Tests\Mocks;
9
10
11
use FtwSoft\NotificationChannels\Intercom\Contracts\IntercomNotification;
12
use FtwSoft\NotificationChannels\Intercom\IntercomMessage;
13
use Illuminate\Notifications\Notification;
14
15
class TestNotification extends Notification implements IntercomNotification
16
{
17
18
    /**
19
     * @var IntercomMessage
20
     */
21
    private $intercomMessage;
22
23
    /**
24
     * TestNotification constructor.
25
     *
26
     * @param \FtwSoft\NotificationChannels\Intercom\IntercomMessage $intercomMessage
27
     */
28
    public function __construct(IntercomMessage $intercomMessage)
29
    {
30
        $this->intercomMessage = $intercomMessage;
31
    }
32
33
    /**
34
     * @inheritdoc
35
     */
36
    public function toIntercom($notifiable): IntercomMessage
37
    {
38
        return $this->intercomMessage;
39
    }
40
41
}