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

WalletConfigure::ignoreMigrations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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