private function switchMode()
    {
        switch ( $this->getModeName() )
        {
            case self::NUMERIC_MODE:
                return new NumericMode;

            case self::ALPHA_NUMERIC_MODE:
                return new AlphanumericMode;

            case self::EIGHT_BITS_MODE:
            default:
                return new EightBitMode;
        }
    }
private function switchMode()
    {
        switch ( $this->getModeName() )
        {
            case self::NUMERIC_MODE:
                return new NumericMode;

            case self::ALPHA_NUMERIC_MODE:
                return new AlphanumericMode;

            case self::EIGHT_BITS_MODE:
            default:
                return new EightBitMode;
        }
    }
private function switchMode ( ) { switch ( $ this -> getModeName ( ) ) { case self :: NUMERIC_MODE : return new NumericMode ; case self :: ALPHA_NUMERIC_MODE : return new AlphanumericMode ; case self :: EIGHT_BITS_MODE : default : return new EightBitMode ; } }
Switch the Encoding mode

@return AlphanumericMode | EightBitMode | NumericMode
Switch the Encoding mode