amount = $minimum_amount; $this->currency = $currency; parent::__construct( $message, 'amount_too_small', $http_code, null, null, $code, $previous ); } /** * Returns the minimum required amount. * * @return int */ public function get_minimum_amount() { return $this->amount; } /** * Returns the currency of the minumum required amount. * * @return string */ public function get_currency() { return $this->currency; } }