File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ final class Uuid2 extends BaseUuid
22
22
private static int |string |null $ defaultNode = null ;
23
23
24
24
private static ?int $ defaultClockSeq = null ;
25
- private UuidV2Factory $ factory ;
25
+ private readonly UuidV2Factory $ factory ;
26
+ private readonly ?DceDomain $ localDomain ;
26
27
27
28
/**
28
29
* @param non-empty-string $field The name of the field to store the UUID
@@ -35,12 +36,12 @@ final class Uuid2 extends BaseUuid
35
36
public function __construct (
36
37
string $ field ,
37
38
bool $ nullable = false ,
38
- private DceDomain |int |null $ localDomain = null ,
39
+ DceDomain |int |null $ localDomain = null ,
39
40
private readonly ?int $ localIdentifier = null ,
40
41
private readonly int |string |null $ node = null ,
41
42
private readonly ?int $ clockSeq = null ,
42
43
) {
43
- $ this ->localDomain = \is_int ($ this -> localDomain ) ? DceDomain::from ($ this -> localDomain ) : $ this -> localDomain ;
44
+ $ this ->localDomain = \is_int ($ localDomain ) ? DceDomain::from ($ localDomain ) : $ localDomain ;
44
45
$ this ->factory = new UuidV2Factory ();
45
46
parent ::__construct ($ field , $ nullable );
46
47
}
Original file line number Diff line number Diff line change 14
14
*/
15
15
final class Uuid3 extends Base
16
16
{
17
- private UuidFactory $ factory ;
17
+ private readonly UuidFactory $ factory ;
18
18
19
19
/**
20
20
* @param non-empty-string $field The name of the field to store the UUID
Original file line number Diff line number Diff line change 14
14
*/
15
15
final class Uuid5 extends Base
16
16
{
17
- private UuidFactory $ factory ;
17
+ private readonly UuidFactory $ factory ;
18
18
19
19
/**
20
20
* @param non-empty-string $field The name of the field to store the UUID
You can’t perform that action at this time.
0 commit comments