ContentCreated::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php
2
3
namespace App\Events;
4
5
use App\Model\Admin\Content;
6
use App\Model\Admin\Entity;
7
use Illuminate\Broadcasting\InteractsWithSockets;
8
use Illuminate\Foundation\Events\Dispatchable;
9
use Illuminate\Queue\SerializesModels;
10
11
class ContentCreated
12
{
13
    use Dispatchable, InteractsWithSockets, SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\ContentCreated: $id, $relations, $class, $connection, $keyBy
Loading history...
14
15
    public $content;
16
    public $entity;
17
18
    /**
19
     * Create a new event instance.
20
     *
21
     * @param Content $content
22
     * @param Entity $entity
23
     * @return void
24
     */
25
    public function __construct(Content $content, Entity $entity)
26
    {
27
        $this->content = $content;
28
        $this->entity = $entity;
29
    }
30
}
31