CollectionHasBeenCleared   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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