WalletConfigure   A
last analyzed

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
 * @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