Skip to content

Instantly share code, notes, and snippets.

@fesor
Created July 9, 2015 13:50
Show Gist options
  • Save fesor/dc13d058ae34cdc186f6 to your computer and use it in GitHub Desktop.
Save fesor/dc13d058ae34cdc186f6 to your computer and use it in GitHub Desktop.
function postStartNegotiations1(Property $property, Offer $offer)
{
return $this->get('app.command.add_offer')->execute((object) [
'suggestedPrice' => $offer->getSuggestedPrice(),
'buyer' => $this->getUser(),
'advert' => $advert
]);
}
function postStartNegotiations2(Property $property, Offer $offer)
{
return $advert->startNegotiations(
$this->getUser(), $offer->getSuggestedPrice()
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment