Completed
Push — master ( 4671d6...c5be3c )
by Andrey
03:04
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
1
<?php
2
3
namespace FtwSoft\NotificationChannels\Intercom\Tests\Mocks;
4
5
use Illuminate\Notifications\Notifiable;
6
7
class TestNotifiable
8
{
9
    use Notifiable;
10
11
    /**
12
     * @var bool|array
13
     */
14
    private $to;
15
16
    /**
17
     * TestNotifiable constructor.
18
     *
19
     * @param $to
20
     */
21
    public function __construct($to = false)
22
    {
23
        $this->to = $to;
24
    }
25
26
    /**
27
     * @return array|bool
28
     */
29
    public function routeNotificationForIntercom()
30
    {
31
        return $this->to;
32
    }
33
}
34