/**
  * @param Order $body
  *
  * @return Order
  */
 public function placeOrder(Order $body) : Order
 {
     return $body->setId(rand())->setComplete(true)->setShipDate($body->getShipDate()->add(new \DateInterval('P1D')))->setStatus('placed');
 }
示例#2
0
 /**
  * @param Order $body
  *
  * @return Order
  */
 public function placeOrder(Order $body)
 {
     return $body->setId(rand())->setStatus('placed');
 }