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

TopicSaved::__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 Coyote\Topic;
6
use Illuminate\Queue\SerializesModels;
7
8
class TopicSaved
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\TopicSaved: $id, $relations, $class, $connection, $keyBy
Loading history...
11
12
    /**
13
     * @var Topic
14
     */
15
    public $topic;
16
17
    /**
18
     * Create a new event instance.
19
     *
20
     * @param Topic $topic
21
     */
22
    public function __construct(Topic $topic)
23
    {
24
        $this->topic = $topic;
25
    }
26
}
27