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

CouponDisabled   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 11
ccs 1
cts 1
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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