Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
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 | } |
||
34 |