public function cancelTrade(TradeOffer $tradeOffer)
    {
        if ($tradeOffer->isOurOffer()) {
            return $this->cancelTradeById($tradeOffer->getTradeOfferId());
        }
        return false;
    }
public function cancelTrade(TradeOffer $tradeOffer)
    {
        if ($tradeOffer->isOurOffer()) {
            return $this->cancelTradeById($tradeOffer->getTradeOfferId());
        }
        return false;
    }
public function cancelTrade ( TradeOffer $ tradeOffer ) { if ( $ tradeOffer -> isOurOffer ( ) ) { return $ this -> cancelTradeById ( $ tradeOffer -> getTradeOfferId ( ) ) ; } return false ; }
Cancel a trade offer.
@param TradeOffer $tradeOffer
@return bool
Cancel a trade offer .