public function shiftedLeft(int $distance) : BigInteger
    {
        if ($distance === 0) {
            return $this;
        }

        if ($distance < 0) {
            return $this->shiftedRight(- $distance);
        }

        return $this->multipliedBy(BigInteger::of(2)->power($distance));
    }
public function shiftedLeft(int $distance) : BigInteger
    {
        if ($distance === 0) {
            return $this;
        }

        if ($distance < 0) {
            return $this->shiftedRight(- $distance);
        }

        return $this->multipliedBy(BigInteger::of(2)->power($distance));
    }
public function shiftedLeft ( int $ distance ) : BigInteger { if ( $ distance === 0 ) { return $ this ; } if ( $ distance < 0 ) { return $ this -> shiftedRight ( - $ distance ) ; } return $ this -> multipliedBy ( BigInteger :: of ( 2 ) -> power ( $ distance ) ) ; }
Returns the integer left shifted by a given number of bits.

@param int $distance The distance to shift.

@return BigInteger
Returns the integer left shifted by a given number of bits .