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