Passed
Push — main ( df9a67...447794 )
by Michael
03:30
created

CouponDisabled::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 0
c 1
b 0
f 0
dl 0
loc 4
ccs 1
cts 1
cp 1
rs 10
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MichaelRubel\Couponables\Events;
6
7
use Illuminate\Database\Eloquent\Model;
8
use Illuminate\Queue\SerializesModels;
9
use MichaelRubel\Couponables\Models\Contracts\CouponContract;
10
11
class CouponDisabled
12
{
13
    use SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by MichaelRubel\Couponables\Events\CouponDisabled: $collectionClass, $id, $relations, $class, $connection, $keyBy
Loading history...
14
15
    /**
16
     * @return void
17
     */
18 2
    public function __construct(
19
        public CouponContract $coupon,
20
        public Model $redeemer
21
    ) {
22 2
    }
23
}
24