original_string: private function _convertToBin($input, $base)
      {
          switch ($base) {
              case 2:
                  return DataConverter::pad($input, $this->binSize);
              case 10:
                  return DataConverter::decToBin($input, $this->binSize);
              case 16:
                  return DataConverter::hexToBin($input, $this->binSize);
          }
      }
code: private function _convertToBin($input, $base)
      {
          switch ($base) {
              case 2:
                  return DataConverter::pad($input, $this->binSize);
              case 10:
                  return DataConverter::decToBin($input, $this->binSize);
              case 16:
                  return DataConverter::hexToBin($input, $this->binSize);
          }
      }
code_tokens: private function _convertToBin ( $ input , $ base ) { switch ( $ base ) { case 2 : return DataConverter :: pad ( $ input , $ this -> binSize ) ; case 10 : return DataConverter :: decToBin ( $ input , $ this -> binSize ) ; case 16 : return DataConverter :: hexToBin ( $ input , $ this -> binSize ) ; } }
docstring: Helper method converting input data to binary string.
  
  @param string $input
  @param string $base
  
  @return string
docstring_tokens: Helper method converting input data to binary string .