public function reverseMap($data): ContentMetadataUpdateStruct
    {
        if (!$data instanceof ContentMainLocationUpdateData) {
            throw new InvalidArgumentException('data', 'must be an instance of ' . ContentMainLocationUpdateData::class);
        }

        return new ContentMetadataUpdateStruct([
            'mainLocationId' => $data->getLocation()->id,
        ]);
    }
public function reverseMap($data): ContentMetadataUpdateStruct
    {
        if (!$data instanceof ContentMainLocationUpdateData) {
            throw new InvalidArgumentException('data', 'must be an instance of ' . ContentMainLocationUpdateData::class);
        }

        return new ContentMetadataUpdateStruct([
            'mainLocationId' => $data->getLocation()->id,
        ]);
    }
public function reverseMap ( $ data ) : ContentMetadataUpdateStruct { if ( ! $ data instanceof ContentMainLocationUpdateData ) { throw new InvalidArgumentException ( 'data' , 'must be an instance of ' . ContentMainLocationUpdateData :: class ) ; } return new ContentMetadataUpdateStruct ( [ 'mainLocationId' => $ data -> getLocation ( ) -> id , ] ) ; }
Maps given ContentMainLocationUpdateData object to a ContentMetadataUpdateStruct object.

@param ContentMainLocationUpdateData $data

@return ContentMetadataUpdateStruct

@throws InvalidArgumentException
Maps given ContentMainLocationUpdateData object to a ContentMetadataUpdateStruct object .