Completed
Pull Request — master (#93)
by Peter
01:27
created

SnapshotStatus   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Spatie\DbSnapshots\Events;
4
5
use Spatie\DbSnapshots\Snapshot;
6
7
class SnapshotStatus
8
{
9
    /** @var \Spatie\DbSnapshots\Snapshot */
10
    public $snapshot;
11
12
    /** @var string */
13
    public $status;
14
15
    public function __construct(Snapshot $snapshot, string $status)
16
    {
17
        $this->snapshot = $snapshot;
18
        $this->status = $status;
19
    }
20
}
21