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

TestNotification   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 24
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A toIntercom() 0 3 1
A __construct() 0 3 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
}