ModelWasCleanedUp::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 6
rs 10
c 0
b 0
f 0
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