mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-28 08:20:57 +01:00
19 lines
419 B
PHP
19 lines
419 B
PHP
|
<?php
|
||
|
|
||
|
final class PhabricatorSystemActionRateLimitException extends Exception {
|
||
|
|
||
|
private $action;
|
||
|
private $score;
|
||
|
|
||
|
public function __construct(PhabricatorSystemAction $action, $score) {
|
||
|
$this->action = $action;
|
||
|
$this->score = $score;
|
||
|
parent::__construct($action->getLimitExplanation());
|
||
|
}
|
||
|
|
||
|
public function getRateExplanation() {
|
||
|
return $this->action->getRateExplanation($this->score);
|
||
|
}
|
||
|
|
||
|
}
|