private function _convertFromBin($binary, $base, $pad)
    {
        switch ($base) {
            case 2:
                return DataConverter::pad($binary, ($pad ? $this->binSize : 0));
            case 10:
                return DataConverter::binToDec($binary, ($pad ? $this->decSize : 0));
            case 16:
                return DataConverter::binToHex($binary, ($pad ? $this->hexSize : 0));
        }
    }
private function _convertFromBin($binary, $base, $pad)
    {
        switch ($base) {
            case 2:
                return DataConverter::pad($binary, ($pad ? $this->binSize : 0));
            case 10:
                return DataConverter::binToDec($binary, ($pad ? $this->decSize : 0));
            case 16:
                return DataConverter::binToHex($binary, ($pad ? $this->hexSize : 0));
        }
    }
private function _convertFromBin ( $ binary , $ base , $ pad ) { switch ( $ base ) { case 2 : return DataConverter :: pad ( $ binary , ( $ pad ? $ this -> binSize : 0 ) ) ; case 10 : return DataConverter :: binToDec ( $ binary , ( $ pad ? $ this -> decSize : 0 ) ) ; case 16 : return DataConverter :: binToHex ( $ binary , ( $ pad ? $ this -> hexSize : 0 ) ) ; } }
Helper method converting input data from binary string.

@param string $binary
@param string $type
@param string $pad

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