MetadataStorageError   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 12
ccs 2
cts 4
cp 0.5
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A notUpToDate() 0 4 1
A notInitialized() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Migrations\Exception;
6
7
use RuntimeException;
8
9
final class MetadataStorageError extends RuntimeException implements MigrationException
10
{
11 2
    public static function notUpToDate() : self
12
    {
13 2
        return new self('The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue.');
14
    }
15
16
    public static function notInitialized() : self
17
    {
18
        return new self('The metadata storage is not initialized, please run the sync-metadata-storage command to fix this issue.');
19
    }
20
}
21