WalletConfigure::ignoreMigrations()   A
last analyzed

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
 * @codeCoverageIgnore
8
 */
9
class WalletConfigure
10
{
11
    /**
12
     * Indicates if Wallet migrations will be run.
13
     *
14
     * @var bool
15
     */
16
    public static $runsMigrations = true;
17
18
    /**
19
     * Configure Wallet to not register its migrations.
20
     *
21
     * @return static
22
     */
23
    public static function ignoreMigrations(): self
24
    {
25
        static::$runsMigrations = false;
26
27
        return new static;
28
    }
29
}
30