function getShardID(int $shardCount) {
        if(\PHP_INT_SIZE === 4) {
            $time = \base_convert(\substr($this->binary, 0, 42), 2, 10);
            $shard = (int) \bcmod($time, ((string) $shardCount));
            
            return $shard;
        } else {
            $time = $this->value >> 22;
            return ($time % $shardCount);
        }
    }
function getShardID(int $shardCount) {
        if(\PHP_INT_SIZE === 4) {
            $time = \base_convert(\substr($this->binary, 0, 42), 2, 10);
            $shard = (int) \bcmod($time, ((string) $shardCount));
            
            return $shard;
        } else {
            $time = $this->value >> 22;
            return ($time % $shardCount);
        }
    }
function getShardID ( int $ shardCount ) { if ( \ PHP_INT_SIZE === 4 ) { $ time = \ base_convert ( \ substr ( $ this -> binary , 0 , 42 ) , 2 , 10 ) ; $ shard = ( int ) \ bcmod ( $ time , ( ( string ) $ shardCount ) ) ; return $ shard ; } else { $ time = $ this -> value >> 22 ; return ( $ time % $ shardCount ) ; } }
Compute the shard ID from the snowflake.
@param int  $shardCount
@return int
Compute the shard ID from the snowflake .