RollbackMissingMigrationException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 9
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Umbrellio\RollbackMissingMigrations\Exceptions;
6
7
use Exception;
8
use Illuminate\Support\Collection;
9
use Throwable;
10
11
class RollbackMissingMigrationException extends Exception
12
{
13 1
    public function __construct(Collection $migrations, $code = 0, Throwable $previous = null)
14
    {
15 1
        $title = 'Rollback migrations failed. Migrations which are not rolled back:';
16 1
        $message = $migrations->prepend($title)
17 1
            ->join(PHP_EOL);
18
19 1
        parent::__construct($message, $code, $previous);
20
    }
21
}
22