Completed
Push — master ( e9c24c...b0d32f )
by Arthur
04:30
created

InsufficientFundsTryingDirectDebit::broadcastOn()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 4
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace BB\Events\SubscriptionPayment;
4
5
use BB\Events\Event;
6
use Illuminate\Queue\SerializesModels;
7
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
8
9 View Code Duplication
class InsufficientFundsTryingDirectDebit extends Event
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
10
{
11
    use SerializesModels;
12
13
    /**
14
     * @var
15
     */
16
    public $userId;
17
18
    /**
19
     * @var
20
     */
21
    public $ubChargeId;
22
23
    /**
24
     * @param $userId
25
     * @param $ubChargeId
26
     */
27
    public function __construct($userId, $ubChargeId)
28
    {
29
        $this->userId = $userId;
30
        $this->ubChargeId = $ubChargeId;
31
    }
32
33
    /**
34
     * Get the channels the event should be broadcast on.
35
     *
36
     * @return array
37
     */
38
    public function broadcastOn()
39
    {
40
        return [];
41
    }
42
}
43