CollectionHasBeenCleared::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Spatie\MediaLibrary\Events;
4
5
use Illuminate\Queue\SerializesModels;
6
use Spatie\MediaLibrary\HasMedia\HasMedia;
7
8
class CollectionHasBeenCleared
9
{
10
    use SerializesModels;
11
12
    /** @var \Spatie\MediaLibrary\HasMedia\HasMedia */
13
    public $model;
14
15
    /** @var string */
16
    public $collectionName;
17
18
    public function __construct(HasMedia $model, string $collectionName)
19
    {
20
        $this->model = $model;
21
22
        $this->collectionName = $collectionName;
23
    }
24
}
25