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

WikiSaved::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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