Exemplo n.º 1
0
 /**
  * @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');
 }
Exemplo n.º 2
0
 /**
  * @param Order $body
  *
  * @return Order
  */
 public function placeOrder(Order $body)
 {
     return $body->setId(rand())->setStatus('placed');
 }