Passed
Push — master ( 77f2dd...e348f5 )
by Adam
12:12
created

WikiDeleted::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Coyote\Events;
4
5
use Illuminate\Queue\SerializesModels;
6
use Coyote\Wiki;
7
8
class WikiDeleted
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\WikiDeleted: $id, $relations, $class, $connection, $keyBy
Loading history...
11
12
    /**
13
     * @var array
14
     */
15
    public $wiki;
16
17
    /**
18
     * @param Wiki $wiki
19
     */
20
    public function __construct(Wiki $wiki)
21
    {
22
        $this->wiki = $wiki->toArray();
23
    }
24
}
25