public function registerEncoder(string $type, IEncoder $encoder): void
    {
        $normalizedType = self::normalizeType($type);
        $this->encodersByType[$normalizedType] = $encoder;
    }
public function registerEncoder(string $type, IEncoder $encoder): void
    {
        $normalizedType = self::normalizeType($type);
        $this->encodersByType[$normalizedType] = $encoder;
    }
public function registerEncoder ( string $ type , IEncoder $ encoder ) : void { $ normalizedType = self :: normalizeType ( $ type ) ; $ this -> encodersByType [ $ normalizedType ] = $ encoder ; }
Registers an encoder

@param string $type The type that the encoder is for
@param IEncoder $encoder The encoder to register
Registers an encoder