public function getByFileExtension($fileExtension)
    {
        $fileExtension = ltrim($fileExtension);
        $result = [];
        foreach ($this->converters as $converter) {
            if (strcasecmp($fileExtension, $converter->getFileExtension()) === 0) {
                $result[] = $converter;
            }
        }

        return $result;
    }
public function getByFileExtension($fileExtension)
    {
        $fileExtension = ltrim($fileExtension);
        $result = [];
        foreach ($this->converters as $converter) {
            if (strcasecmp($fileExtension, $converter->getFileExtension()) === 0) {
                $result[] = $converter;
            }
        }

        return $result;
    }
public function getByFileExtension ( $ fileExtension ) { $ fileExtension = ltrim ( $ fileExtension ) ; $ result = [ ] ; foreach ( $ this -> converters as $ converter ) { if ( strcasecmp ( $ fileExtension , $ converter -> getFileExtension ( ) ) === 0 ) { $ result [ ] = $ converter ; } } return $ result ; }
Get the converter given a file extension.

@param string $fileExtension

@return ConverterInterface[]
Get the converter given a file extension .