Snowflake   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
1
<?php
2
/**
3
 * 雪花算法 Facade
4
 *
5
 * @author herry@<[email protected]>
6
 * @version 1.0
7
 * @copyright © 2020 MuCTS.com All Rights Reserved.
8
 */
9
10
namespace MuCTS\Laravel\Snowflake\Facades;
11
12
13
use Illuminate\Support\Facades\Facade;
14
15
/**
16
 * Class Snowflake
17
 *
18
 * @method static string next()
19
 * @method static \Illuminate\Support\Collection info(string $snowflakeId)
20
 * @method static \MuCTS\Laravel\Snowflake\Snowflake setTwEpoch($twEpoch)
21
 * @method static \MuCTS\Laravel\Snowflake\Snowflake setWorkerId(?int $workerId)
22
 * @method static \MuCTS\Laravel\Snowflake\Snowflake setDataCenterId(?int $dataCenterId)
23
 * @package MuCTS\Laravel\Snowflake\Facades
24
 */
25
class Snowflake extends Facade
26
{
27
    protected static function getFacadeAccessor()
28
    {
29
        return 'snowflake';
30
    }
31
}