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);
        }
    }
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);
        }
    }
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 ) ; } }
Helper method converting input data to binary string.

@param string $input
@param string $base

@return string
Helper method converting input data to binary string .