public function get($format)
    {
        if (!array_key_exists($format, $this->encoders)) {
            throw new \RuntimeException(
                sprintf('The expression encoder for "%s" formatting was not found.', $format)
            );
        }

        return $this->encoders[$format];
    }
public function get($format)
    {
        if (!array_key_exists($format, $this->encoders)) {
            throw new \RuntimeException(
                sprintf('The expression encoder for "%s" formatting was not found.', $format)
            );
        }

        return $this->encoders[$format];
    }
public function get ( $ format ) { if ( ! array_key_exists ( $ format , $ this -> encoders ) ) { throw new \ RuntimeException ( sprintf ( 'The expression encoder for "%s" formatting was not found.' , $ format ) ) ; } return $ this -> encoders [ $ format ] ; }
Returns the encoder for the given format

@param string $format
@return ExpressionEncoderInterface
@throws \RuntimeException if the appropriate encoder does not exist
Returns the encoder for the given format