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

TestNotifiable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 25
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A routeNotificationForIntercom() 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 Illuminate\Notifications\Notifiable;
12
13
class TestNotifiable
14
{
15
    use Notifiable;
0 ignored issues
show
introduced by
The trait Illuminate\Notifications\Notifiable requires some properties which are not provided by FtwSoft\NotificationChan...ts\Mocks\TestNotifiable: $email, $phone_number
Loading history...
16
17
    /**
18
     * @var bool|array
19
     */
20
    private $to;
21
22
    /**
23
     * TestNotifiable constructor.
24
     *
25
     * @param $to
26
     */
27
    public function __construct($to = false)
28
    {
29
        $this->to = $to;
30
    }
31
32
    /**
33
     * @return array|bool
34
     */
35
    public function routeNotificationForIntercom()
36
    {
37
        return $this->to;
38
    }
39
}