@@ 49-53 (lines=5) @@ | ||
46 | { |
|
47 | $command = Enum::BITFIELD; |
|
48 | switch ($subCommand = strtoupper($subCommand)) { |
|
49 | case 'GET' : { |
|
50 | list ($type, $offset) = $param; |
|
51 | $args = [$subCommand, $type, $offset]; |
|
52 | break; |
|
53 | } |
|
54 | case 'SET' : { |
|
55 | list ($type, $offset, $value) = $param; |
|
56 | $args = [$subCommand, $type, $offset, $value]; |
|
@@ 54-58 (lines=5) @@ | ||
51 | $args = [$subCommand, $type, $offset]; |
|
52 | break; |
|
53 | } |
|
54 | case 'SET' : { |
|
55 | list ($type, $offset, $value) = $param; |
|
56 | $args = [$subCommand, $type, $offset, $value]; |
|
57 | break; |
|
58 | } |
|
59 | case 'INCRBY' : { |
|
60 | list ($type, $offset, $increment) = $param; |
|
61 | $args = [$type, $offset, $increment]; |