Passed
Push — master ( 3b518a...cd2a02 )
by Adam
11:23
created

GuideDeleted::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Coyote\Events;
4
5
use Coyote\Guide;
6
use Illuminate\Queue\SerializesModels;
7
8
class GuideDeleted
9
{
10
    use SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by Coyote\Events\GuideDeleted: $id, $relations, $class, $connection, $keyBy
Loading history...
11
12
    public array $guide;
13
14
    public function __construct(Guide $guide)
15
    {
16
        $this->guide = $guide->toArray();
17
    }
18
}
19