1: <?php
2:
3: namespace mcfedr\Paypal\Exceptions;
4:
5: /**
6: * The notification currency doesnt match the expected currency
7: */
8: class NotificationCurrencyInvalidException extends NotificationInvalidException {
9:
10: /**
11: *
12: * @param \mcfedr\Paypal\Notifications\Notification $notification
13: * @param string $has notification currency
14: * @param string $expected expected currency
15: */
16: public function __construct($notification, $has, $expected) {
17: $this->notification = $notification;
18: parent::__construct("Invalid Currency, expected $expected but has $has");
19: }
20:
21: }
22: