Passed
Push — master ( 6514fd...09b598 )
by Бабичев
01:51 queued 12s
created

WalletConfigure   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A ignoreMigrations() 0 5 1
1
<?php
2
3
namespace Bavix\Wallet;
4
5
/**
6
 * Class WalletConfigure
7
 * @package Bavix\Wallet
8
 * @codeCoverageIgnore
9
 */
10
class WalletConfigure
11
{
12
    /**
13
     * Indicates if Wallet migrations will be run.
14
     *
15
     * @var bool
16
     */
17
    public static $runsMigrations = true;
18
19
    /**
20
     * Configure Wallet to not register its migrations.
21
     *
22
     * @return static
23
     */
24
    public static function ignoreMigrations(): self
25
    {
26
        static::$runsMigrations = false;
27
28
        return new static;
29
    }
30
}
31