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

TestNotifiable::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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
}