> 1); } /** * {@inheritdoc} */ public static function decode(int $gray) : int { $source = $gray; while ($gray >>= 1) { $source ^= $gray; } return $source; } }