Beispiel #1
0
 public function assertAmount(Money $amount)
 {
     if (!$amount->isPositive()) {
         throw new \Exception('Amount should be positive.');
     }
 }