Passed
Push — main ( a1da84...1f5895 )
by Thierry
15:21
created

OnPagePaymentPayables   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
 
3
namespace App\Events;
4
 
5
use Illuminate\Broadcasting\InteractsWithSockets;
6
use Illuminate\Foundation\Events\Dispatchable;
7
use Illuminate\Queue\SerializesModels;
8
use Illuminate\Support\Collection;
9
use Siak\Tontine\Model\Member;
10
use Siak\Tontine\Model\Session;
11
12
class OnPagePaymentPayables
13
{
14
    use Dispatchable, InteractsWithSockets, SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\OnPagePaymentPayables: $collectionClass, $id, $relations, $class, $connection, $keyBy
Loading history...
15
16
    /**
17
     * Create a new event instance.
18
     *
19
     * @param Member $member
20
     * @param Session $session
21
     * @param Collection $receivables
22
     * @param Collection $bills
23
     * @param Collection $debts
24
     */
25
    public function __construct(public Member $member, public Session $session,
26
        public Collection $receivables, public Collection $bills, public Collection $debts)
27
    {}
28
}
29