Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/action/PhortuneAddPaymentMethodAction.php
| <?php | <?php | ||||
| final class PhortuneAddPaymentMethodAction | final class PhortuneAddPaymentMethodAction | ||||
| extends PhabricatorSystemAction { | extends PhabricatorSystemAction { | ||||
| const TYPECONST = 'phortune.payment-method.add'; | const TYPECONST = 'phortune.payment-method.add'; | ||||
| public function getActionConstant() { | |||||
| return self::TYPECONST; | |||||
| } | |||||
| public function getScoreThreshold() { | public function getScoreThreshold() { | ||||
| return 60 / phutil_units('1 hour in seconds'); | return 60 / phutil_units('1 hour in seconds'); | ||||
| } | } | ||||
| public function getLimitExplanation() { | public function getLimitExplanation() { | ||||
| return pht( | return pht( | ||||
| 'You are making too many attempts to add payment methods in a short '. | 'You are making too many attempts to add payment methods in a short '. | ||||
| 'period of time.'); | 'period of time.'); | ||||
| } | } | ||||
| } | } | ||||