public function getFormat()
    {
        switch (true) {
            case ($this->encoder instanceof Base32Encoder):
                $format = self::FORMAT_BASE32;
                break;
            case ($this->encoder instanceof HexEncoder):
                $format = self::FORMAT_HEX;
                break;
            case ($this->encoder instanceof RawEncoder):
            default:
                $format = self::FORMAT_RAW;
        }

        return $format;
    }
public function getFormat()
    {
        switch (true) {
            case ($this->encoder instanceof Base32Encoder):
                $format = self::FORMAT_BASE32;
                break;
            case ($this->encoder instanceof HexEncoder):
                $format = self::FORMAT_HEX;
                break;
            case ($this->encoder instanceof RawEncoder):
            default:
                $format = self::FORMAT_RAW;
        }

        return $format;
    }
public function getFormat ( ) { switch ( true ) { case ( $ this -> encoder instanceof Base32Encoder ) : $ format = self :: FORMAT_BASE32 ; break ; case ( $ this -> encoder instanceof HexEncoder ) : $ format = self :: FORMAT_HEX ; break ; case ( $ this -> encoder instanceof RawEncoder ) : default : $ format = self :: FORMAT_RAW ; } return $ format ; }
Get the output format

@return string  Returns the current output format.
Get the output format