Snowflake::getFacadeAccessor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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