1 | <?php |
||
2 | |||
3 | /* |
||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
4 | * This file is part of SoUuid. |
||
5 | * (c) Fabrice de Stefanis / https://github.com/fab2s/SoUuid |
||
6 | * This source file is licensed under the MIT license which you will |
||
7 | * find in the LICENSE file or at https://opensource.org/licenses/MIT |
||
8 | */ |
||
9 | |||
10 | namespace fab2s\SoUuid; |
||
11 | |||
12 | /** |
||
13 | * interface SoUuidFactoryInterface |
||
14 | */ |
||
0 ignored issues
–
show
|
|||
15 | interface SoUuidFactoryInterface |
||
16 | { |
||
17 | /** |
||
18 | * @param string|int|null $identifier |
||
0 ignored issues
–
show
|
|||
19 | * |
||
20 | * @return SoUuidInterface |
||
21 | */ |
||
22 | public static function generate($identifier = null): SoUuidInterface; |
||
0 ignored issues
–
show
|
|||
23 | |||
24 | /** |
||
25 | * @param string $uuidString |
||
0 ignored issues
–
show
|
|||
26 | * |
||
27 | * @return SoUuidInterface |
||
28 | */ |
||
29 | public static function fromString(string $uuidString): SoUuidInterface; |
||
0 ignored issues
–
show
|
|||
30 | |||
31 | /** |
||
32 | * @param string $uuidHex |
||
0 ignored issues
–
show
|
|||
33 | * |
||
34 | * @return SoUuidInterface |
||
35 | */ |
||
36 | public static function fromHex(string $uuidHex): SoUuidInterface; |
||
0 ignored issues
–
show
|
|||
37 | |||
38 | /** |
||
39 | * @param string $uuidBytes |
||
0 ignored issues
–
show
|
|||
40 | * |
||
41 | * @return SoUuidInterface |
||
42 | */ |
||
43 | public static function fromBytes(string $uuidBytes): SoUuidInterface; |
||
0 ignored issues
–
show
|
|||
44 | |||
45 | /** |
||
46 | * @param string $uuidString |
||
0 ignored issues
–
show
|
|||
47 | * |
||
48 | * @return SoUuidInterface |
||
49 | */ |
||
50 | public static function fromBase62(string $uuidString): SoUuidInterface; |
||
0 ignored issues
–
show
|
|||
51 | |||
52 | /** |
||
53 | * @param string $uuidString |
||
0 ignored issues
–
show
|
|||
54 | * |
||
55 | * @return SoUuidInterface |
||
56 | */ |
||
57 | public static function fromBase36(string $uuidString): SoUuidInterface; |
||
0 ignored issues
–
show
|
|||
58 | } |
||
59 |