Completed
Push — master ( 0326c3...28872c )
by Freek
06:11
created

ModelWasCleanedUp   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 23
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Spatie\ModelCleanup;
4
5
class ModelWasCleanedUp
6
{
7
    /**
8
     * Holds the model class name.
9
     *
10
     * @var string
11
     */
12
    public $modelClass;
13
14
    /**
15
     * Holds the number of deleted records for the model.
16
     *
17
     * @var int
18
     */
19
    public $numberOfDeletedRecords;
20
21
    public function __construct(string $modelClass, int $numberOfDeletedRecords)
22
    {
23
        $this->modelClass = $modelClass;
24
25
        $this->numberOfDeletedRecords = $numberOfDeletedRecords;
26
    }
27
}
28