Issues (116)

src/SoUuidFactoryInterface.php (22 issues)

1
<?php
2
3
/*
0 ignored issues
show
You must use "/**" style comments for a file comment
Loading history...
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
Missing @category tag in class comment
Loading history...
Missing @package tag in class comment
Loading history...
Missing @author tag in class comment
Loading history...
Missing @license tag in class comment
Loading history...
Missing @link tag in class comment
Loading history...
15
interface SoUuidFactoryInterface
16
{
17
    /**
18
     * @param string|int|null $identifier
0 ignored issues
show
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
Expected "string|integer|null" but found "string|int|null" for parameter type
Loading history...
19
     *
20
     * @return SoUuidInterface
21
     */
22
    public static function generate($identifier = null): SoUuidInterface;
0 ignored issues
show
Expected 2 blank lines before function; 0 found
Loading history...
Incorrect spacing between argument "$identifier" and equals sign; expected 0 but found 1
Loading history...
Incorrect spacing between default value and equals sign for argument "$identifier"; expected 0 but found 1
Loading history...
Expected 2 blank lines after function; 1 found
Loading history...
23
24
    /**
25
     * @param string $uuidString
0 ignored issues
show
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
26
     *
27
     * @return SoUuidInterface
28
     */
29
    public static function fromString(string $uuidString): SoUuidInterface;
0 ignored issues
show
Expected 2 blank lines after function; 1 found
Loading history...
30
31
    /**
32
     * @param string $uuidHex
0 ignored issues
show
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
33
     *
34
     * @return SoUuidInterface
35
     */
36
    public static function fromHex(string $uuidHex): SoUuidInterface;
0 ignored issues
show
Expected 2 blank lines after function; 1 found
Loading history...
37
38
    /**
39
     * @param string $uuidBytes
0 ignored issues
show
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
40
     *
41
     * @return SoUuidInterface
42
     */
43
    public static function fromBytes(string $uuidBytes): SoUuidInterface;
0 ignored issues
show
Expected 2 blank lines after function; 1 found
Loading history...
44
45
    /**
46
     * @param string $uuidString
0 ignored issues
show
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
47
     *
48
     * @return SoUuidInterface
49
     */
50
    public static function fromBase62(string $uuidString): SoUuidInterface;
0 ignored issues
show
Expected 2 blank lines after function; 1 found
Loading history...
51
52
    /**
53
     * @param string $uuidString
0 ignored issues
show
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
54
     *
55
     * @return SoUuidInterface
56
     */
57
    public static function fromBase36(string $uuidString): SoUuidInterface;
0 ignored issues
show
Expected 2 blank lines after function; 0 found
Loading history...
58
}
59