src/acdhOeaw/fedora/dissemination/Service.php
public function getFormats(): array {
        $meta    = $this->getMetadata();
        $formats = array();
        foreach ($meta->all(RC::get('fedoraServiceRetFormatProp')) as $i) {
            $formats[] = new Format((string) $i);
        }
        return $formats;
    }
public function getFormats(): array {
        $meta    = $this->getMetadata();
        $formats = array();
        foreach ($meta->all(RC::get('fedoraServiceRetFormatProp')) as $i) {
            $formats[] = new Format((string) $i);
        }
        return $formats;
    }
public function getFormats ( ) : array { $ meta = $ this -> getMetadata ( ) ; $ formats = array ( ) ; foreach ( $ meta -> all ( RC :: get ( 'fedoraServiceRetFormatProp' ) ) as $ i ) { $ formats [ ] = new Format ( ( string ) $ i ) ; } return $ formats ; }
Returns all return formats provided by the dissemination service.

Technically return formats are nothing more then strings. There is no
requirement forcing them to be mime types, etc.
@return array
Returns all return formats provided by the dissemination service .