File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ public function __construct(array $config)
27
27
}
28
28
29
29
/**
30
- * Using a random 0 - 100 number or a 0 - 100 number hashed from an id,
30
+ * Using a random 0 - 99 number or a 0 - 99 number hashed from an id,
31
31
* Select the variant where this random or hashed integer falls within it's
32
32
* calculated integer range.
33
33
*/
34
- public function pickVariantOutOfHat (string $ id ): string
34
+ public function getEnabledVariant (string $ id ): string
35
35
{
36
36
$ hashOrRandomNumber = $ this ->bucketing ->strToIntHash ($ id );
37
37
Original file line number Diff line number Diff line change @@ -52,6 +52,6 @@ public function getEnabledVariant(
52
52
string $ id = ''
53
53
): string
54
54
{
55
- return $ this ->features ->get ($ featureName )->pickVariantOutOfHat ($ id );
55
+ return $ this ->features ->get ($ featureName )->getEnabledVariant ($ id );
56
56
}
57
57
}
You can’t perform that action at this time.
0 commit comments