Slide 38
Slide 38 text
/**
* @param $id
* @WaitingList
* @return mixed
* @throws \Exception
*/
public function makeReservation($id)
{
if ($this->reserve->getQuantity($id)) {
return $this->reserve->createReservation($id);
}
throw new \NoStockException();
}