Issues (40)

app/Events/ContentCreated.php (1 issue)

Severity
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
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