Model/MediaResponse.php
public function addMetaData($item)
    {
        if (!($item instanceof MetaData)) {
            if (is_array($item)) {
                try {
                    $item = new MetaData($item);
                } catch (\Exception $e) {
                    trigger_error('Could not auto-instantiate MetaData. ' . $e->getMessage(), E_USER_WARNING);
                }
            } else {
                trigger_error('Array parameter item is not of expected type "MetaData"!', E_USER_WARNING);
            }
        }
        $this->metadata[] = $item;

        return $this;
    }
public function addMetaData($item)
    {
        if (!($item instanceof MetaData)) {
            if (is_array($item)) {
                try {
                    $item = new MetaData($item);
                } catch (\Exception $e) {
                    trigger_error('Could not auto-instantiate MetaData. ' . $e->getMessage(), E_USER_WARNING);
                }
            } else {
                trigger_error('Array parameter item is not of expected type "MetaData"!', E_USER_WARNING);
            }
        }
        $this->metadata[] = $item;

        return $this;
    }
public function addMetaData ( $ item ) { if ( ! ( $ item instanceof MetaData ) ) { if ( is_array ( $ item ) ) { try { $ item = new MetaData ( $ item ) ; } catch ( \ Exception $ e ) { trigger_error ( 'Could not auto-instantiate MetaData. ' . $ e -> getMessage ( ) , E_USER_WARNING ) ; } } else { trigger_error ( 'Array parameter item is not of expected type "MetaData"!' , E_USER_WARNING ) ; } } $ this -> metadata [ ] = $ item ; return $ this ; }
Adds an object of "Metadata" of the MediaResponse.

@param MetaData|array $item

@return MediaResponse
Adds an object of Metadata of the MediaResponse .