Example #1
0
 /**
  * Withdrawing money
  * @param float $amount
  * @throws \Exception
  */
 public function withdraw($amount)
 {
     $this->bank->validateCard($this->customer->getCreditCard());
     $this->bank->checkAccountBalance($this->customer, $amount);
     $this->bank->withdraw($this->customer, $amount);
 }