public function getSupportedInputFormats(string $given_output_format): array
    {
        $result = [];
        foreach ($this->converters as $formats) {
            list($input_format, $output_format) = $formats;
            if ($given_output_format === $output_format) {
                $result[] = $input_format;
            }
        }

        return $result;
    }
public function getSupportedInputFormats(string $given_output_format): array
    {
        $result = [];
        foreach ($this->converters as $formats) {
            list($input_format, $output_format) = $formats;
            if ($given_output_format === $output_format) {
                $result[] = $input_format;
            }
        }

        return $result;
    }
public function getSupportedInputFormats ( string $ given_output_format ) : array { $ result = [ ] ; foreach ( $ this -> converters as $ formats ) { list ( $ input_format , $ output_format ) = $ formats ; if ( $ given_output_format === $ output_format ) { $ result [ ] = $ input_format ; } } return $ result ; }
Returns a list of supported input formats for the given output format.

@param string $given_output_format A format definition per the constants in the Format class.

@return string[] An array of format definitions per the constantst in the Format class.
Returns a list of supported input formats for the given output format .