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
2222 private static int |string |null $ defaultNode = null ;
2323
2424 private static ?int $ defaultClockSeq = null ;
25- private UuidV2Factory $ factory ;
25+ private readonly UuidV2Factory $ factory ;
26+ private readonly ?DceDomain $ localDomain ;
2627
2728 /**
2829 * @param non-empty-string $field The name of the field to store the UUID
@@ -35,12 +36,12 @@ final class Uuid2 extends BaseUuid
3536 public function __construct (
3637 string $ field ,
3738 bool $ nullable = false ,
38- private DceDomain |int |null $ localDomain = null ,
39+ DceDomain |int |null $ localDomain = null ,
3940 private readonly ?int $ localIdentifier = null ,
4041 private readonly int |string |null $ node = null ,
4142 private readonly ?int $ clockSeq = null ,
4243 ) {
43- $ this ->localDomain = \is_int ($ this -> localDomain ) ? DceDomain::from ($ this -> localDomain ) : $ this -> localDomain ;
44+ $ this ->localDomain = \is_int ($ localDomain ) ? DceDomain::from ($ localDomain ) : $ localDomain ;
4445 $ this ->factory = new UuidV2Factory ();
4546 parent ::__construct ($ field , $ nullable );
4647 }
Original file line number Diff line number Diff line change 1414 */
1515final class Uuid3 extends Base
1616{
17- private UuidFactory $ factory ;
17+ private readonly UuidFactory $ factory ;
1818
1919 /**
2020 * @param non-empty-string $field The name of the field to store the UUID
Original file line number Diff line number Diff line change 1414 */
1515final class Uuid5 extends Base
1616{
17- private UuidFactory $ factory ;
17+ private readonly UuidFactory $ factory ;
1818
1919 /**
2020 * @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