public function remove(int $id, MembershipInterface $participant): PodiumResponse
    {
        $messageRemover = $this->getRemover($id, $participant);

        if ($messageRemover === null) {
            throw new ModelNotFoundException('Message copy of given ID and side can not be found.');
        }

        return $messageRemover->remove();
    }
public function remove(int $id, MembershipInterface $participant): PodiumResponse
    {
        $messageRemover = $this->getRemover($id, $participant);

        if ($messageRemover === null) {
            throw new ModelNotFoundException('Message copy of given ID and side can not be found.');
        }

        return $messageRemover->remove();
    }
public function remove ( int $ id , MembershipInterface $ participant ) : PodiumResponse { $ messageRemover = $ this -> getRemover ( $ id , $ participant ) ; if ( $ messageRemover === null ) { throw new ModelNotFoundException ( 'Message copy of given ID and side can not be found.' ) ; } return $ messageRemover -> remove ( ) ; }
Deletes message copy.
@param int $id
@param MembershipInterface $participant
@return PodiumResponse
@throws ModelNotFoundException
Deletes message copy .